Update nginx.conf

This commit is contained in:
ƬHE ЯAW ☣
2022-12-29 02:23:56 +01:00
committed by GitHub
parent bff43d5ce5
commit d1215f09b0
+25 -20
View File
@@ -5,8 +5,10 @@ pid /var/run/nginx.pid;
worker_processes auto; worker_processes auto;
worker_rlimit_nofile 65535; worker_rlimit_nofile 65535;
load_module /nginx/modules/ngx_http_modsecurity_module.so; load_module /nginx/modules/ndk_http_module.so;
load_module /nginx/modules/ngx_http_lua_module.so;
load_module /nginx/modules/ngx_http_naxsi_module.so; load_module /nginx/modules/ngx_http_naxsi_module.so;
load_module /nginx/modules/ngx_http_modsecurity_module.so;
load_module /nginx/modules/ngx_http_testcookie_access_module.so; load_module /nginx/modules/ngx_http_testcookie_access_module.so;
events { events {
@@ -16,13 +18,16 @@ events {
} }
http { http {
# uncomment lua_package_path if you plan to use ngx-lua module.
# scripts path of resty-core and lrucache is /usr/twiylua
#lua_package_path "/usr/twiylua/lib/lua/?.lua;;";
# ////////////////////////////////////////////////////// # # ////////////////////////////////////////////////////// #
# =================== START L7 ========================= # # =================== LOAD LUA ========================= #
lua_package_path "/usr/twiylua/lib/lua/?.lua;;";
# =================== END LUA ========================== #
# ////////////////////////////////////////////////////// #
# ////////////////////////////////////////////////////// #
# =================== LOAD L7 ========================== #
include modsec/l7.conf; include modsec/l7.conf;
# ===================== END L7 ========================= # # =================== END L7 =========================== #
# ////////////////////////////////////////////////////// # # ////////////////////////////////////////////////////// #
# ////////////////////////////////////////////////////// # # ////////////////////////////////////////////////////// #
@@ -31,20 +36,6 @@ http {
# =================== END LOGS ========================= # # =================== END LOGS ========================= #
# ////////////////////////////////////////////////////// # # ////////////////////////////////////////////////////// #
# ////////////////////////////////////////////////////// #
# ==================== BACKENDS ======================== #
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
# Example Of Backend
#upstream varnish {
# zone tcp_servers 64k;
# server 10.10.10.39:80;
#}
# =================== END BACKENDS ===================== #
# ////////////////////////////////////////////////////// #
# ////////////////////////////////////////////////////// # # ////////////////////////////////////////////////////// #
# ==================== GENERAL ========================= # # ==================== GENERAL ========================= #
client_body_buffer_size 2M; client_body_buffer_size 2M;
@@ -67,6 +58,20 @@ http {
# =================== END GENERAL ====================== # # =================== END GENERAL ====================== #
# ////////////////////////////////////////////////////// # # ////////////////////////////////////////////////////// #
# ////////////////////////////////////////////////////// #
# ==================== BACKENDS ======================== #
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
# Example Of Backend
#upstream varnish {
# zone tcp_servers 64k;
# server 10.10.10.39:80;
#}
# =================== END BACKENDS ===================== #
# ////////////////////////////////////////////////////// #
# ////////////////////////////////////////////////////// # # ////////////////////////////////////////////////////// #
# ================ LOAD VHOST +CONFIGS ================= # # ================ LOAD VHOST +CONFIGS ================= #
include live/*; include live/*;