From beed059e5db6badb28474d6414dc8d244b66c00a Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 2 May 2018 03:19:34 +0100 Subject: [PATCH] lib/lua/nb.lua --- lib/lua/nb.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/lua/nb.lua b/lib/lua/nb.lua index 4b80bf90..ba5d0d53 100644 --- a/lib/lua/nb.lua +++ b/lib/lua/nb.lua @@ -20,6 +20,10 @@ function nb:_ngx_location_md() end function nb:ngx_location_md() +-- location ~ \.(md|html)$ { +-- default_type text/html; +-- content_by_lua 'dofile(ngx.var.NB_ROOT .. "/lib/lua/nb.lua") nb:ngx_location_md()'; +-- } local template = require "resty.template" if self.dev then template.caching(false) end -- 2.47.3