Merge pull request #3170 from Globegitter/move-mainsnippet
Move mainSnippet before events to fix load_module issue.
This commit is contained in:
commit
182767b06b
1 changed files with 4 additions and 4 deletions
|
@ -35,16 +35,16 @@ worker_rlimit_nofile {{ .MaxOpenFiles }};
|
||||||
{{/* avoid waiting too long during a reload */}}
|
{{/* avoid waiting too long during a reload */}}
|
||||||
worker_shutdown_timeout {{ $cfg.WorkerShutdownTimeout }} ;
|
worker_shutdown_timeout {{ $cfg.WorkerShutdownTimeout }} ;
|
||||||
|
|
||||||
|
{{ if not (empty $cfg.MainSnippet) }}
|
||||||
|
{{ $cfg.MainSnippet }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
events {
|
events {
|
||||||
multi_accept {{ if $cfg.EnableMultiAccept }}on{{ else }}off{{ end }};
|
multi_accept {{ if $cfg.EnableMultiAccept }}on{{ else }}off{{ end }};
|
||||||
worker_connections {{ $cfg.MaxWorkerConnections }};
|
worker_connections {{ $cfg.MaxWorkerConnections }};
|
||||||
use epoll;
|
use epoll;
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ if not (empty $cfg.MainSnippet) }}
|
|
||||||
{{ $cfg.MainSnippet }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
http {
|
http {
|
||||||
{{ if not $all.DisableLua }}
|
{{ if not $all.DisableLua }}
|
||||||
lua_package_cpath "/usr/local/lib/lua/?.so;/usr/lib/lua-platform-path/lua/5.1/?.so;;";
|
lua_package_cpath "/usr/local/lib/lua/?.so;/usr/lib/lua-platform-path/lua/5.1/?.so;;";
|
||||||
|
|
Loading…
Reference in a new issue