Skip to content

Commit

Permalink
Merge pull request #3170 from Globegitter/move-mainsnippet
Browse files Browse the repository at this point in the history
Move mainSnippet before events to fix load_module issue.
  • Loading branch information
k8s-ci-robot authored Oct 8, 2018
2 parents be5b86f + 8848c18 commit 182767b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ worker_rlimit_nofile {{ .MaxOpenFiles }};
{{/* avoid waiting too long during a reload */}}
worker_shutdown_timeout {{ $cfg.WorkerShutdownTimeout }} ;

{{ if not (empty $cfg.MainSnippet) }}
{{ $cfg.MainSnippet }}
{{ end }}

events {
multi_accept {{ if $cfg.EnableMultiAccept }}on{{ else }}off{{ end }};
worker_connections {{ $cfg.MaxWorkerConnections }};
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;;";
Expand Down

0 comments on commit 182767b

Please sign in to comment.