From eaba8d44369038cabe474c6d23569582b38d2a96 Mon Sep 17 00:00:00 2001 From: Kevin Yuan Date: Thu, 25 Apr 2019 21:55:54 +0800 Subject: [PATCH] move main_include and main_conf section ahead make `load_module` work in $main_include_directives and $main_conf_lines --- bin/resty | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/resty b/bin/resty index 390ab31..1c76cc4 100755 --- a/bin/resty +++ b/bin/resty @@ -715,6 +715,8 @@ master_process off; worker_processes 1; pid logs/nginx.pid; +$main_conf_lines +$main_include_directives $env_list error_log stderr $errlog_level; @@ -724,9 +726,6 @@ events { worker_connections $conns; } -$main_conf_lines -$main_include_directives - http { access_log off; lua_socket_log_errors off;