support custom configuration to main context of nginx config

This commit is contained in:
Tom Reznik 2018-08-03 21:11:25 +03:00
parent 23ce9b5db1
commit 1bacf1655e
4 changed files with 55 additions and 3 deletions

View file

@ -41,6 +41,10 @@ events {
use epoll;
}
{{ if not (empty $cfg.MainSnippet) }}
{{ $cfg.MainSnippet }}
{{ end }}
http {
{{ if not $all.DisableLua }}
lua_package_cpath "/usr/local/lib/lua/?.so;/usr/lib/lua-platform-path/lua/5.1/?.so;;";