diff --git a/bin/ncproxy/src/models/templates/nginx.conf b/bin/ncproxy/src/models/templates/nginx.conf index e83c06b7edf55bf33b2de7ae502b6a2bf2ec741b..4d9177ac4d273f86bdf423f52089492d849f1839 100644 --- a/bin/ncproxy/src/models/templates/nginx.conf +++ b/bin/ncproxy/src/models/templates/nginx.conf @@ -7,7 +7,7 @@ include /etc/nginx/modules-enabled/*.conf; worker_processes auto; -worker_rlimit_nofile 15360; +# worker_rlimit_nofile 15360; worker_shutdown_timeout 240s; @@ -21,6 +21,9 @@ events { # HTTP Settings ## http { + server { + listen 80; + } ## # Basic Settings ## @@ -93,9 +96,9 @@ http { '"http_user_agent": "$http_user_agent"' '}'; - access_log {{ state_dir }}/log/http.log http_json; - access_log {{ state_dir }}/log/access.log; - error_log {{ state_dir }}/log/error.log debug; + access_log /var/log/nginx/http.log http_json; + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log debug; ## Header config for remove express ## more_set_headers "Server: nanocl"; @@ -150,9 +153,9 @@ stream { '$protocol $status $bytes_sent $bytes_received ' '$session_time'; - access_log {{ state_dir }}/log/stream.log stream_json; - access_log {{ state_dir }}/log/access.log stream_basic; - error_log {{ state_dir }}/log/error.log debug; + access_log /var/log/nginx/stream.log stream_json; + access_log /var/log/nginx/access.log stream_basic; + error_log /var/log/nginx/error.log debug; ## # Virtual Stream Configs