tweaking for tpotlight

This commit is contained in:
Marco Ochse
2023-05-27 14:49:20 +02:00
parent 9941818a6e
commit 87ef005c17
2 changed files with 62 additions and 31 deletions

View File

@ -7,6 +7,7 @@ load_module /usr/lib/nginx/modules/ngx_http_brotli_static_module.so;
# OS ENV variables need to be defined here, so Lua can use them
env COCKPIT;
env TPOT_OSTYPE;
# Both modules are needed for Lua, in this exact order
load_module /usr/lib/nginx/modules/ndk_http_module.so;
@ -18,10 +19,10 @@ events {
}
http {
##
# Basic Settings
##
resolver 127.0.0.11;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
@ -101,11 +102,11 @@ http {
'"server_protocol": "$server_protocol", ' # request protocol, like HTTP/1.1 or HTTP/2.0
'"pipe": "$pipe", ' # “p” if request was pipelined, “.” otherwise
'"gzip_ratio": "$gzip_ratio", '
'"http_cf_ray": "$http_cf_ray"'
'"http_cf_ray": "$http_cf_ray", '
'"proxy_host": "$proxy_host"'
'}';
access_log /var/log/nginx/access.log main_json;
error_log /var/log/nginx/error.log;
##
# Virtual Host Configs