adding before some work

This commit is contained in:
2026-01-26 22:16:52 +00:00
parent 6d7897e2a6
commit f3aa767cd5
3 changed files with 41 additions and 1 deletions
+11 -1
View File
@@ -21,7 +21,11 @@ http {
#custom log format to display the webiste visited and the IP used
log_format my_custom_format '$http_host \t $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
log_format ip_audit '$remote_addr [$time_local]';
log_format backend_debug '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
'upstream_status=$upstream_status';
server {
listen 80;
@@ -44,7 +48,13 @@ http {
'' close;
}
include /etc/nginx/deny.d/*.conf;
include /etc/nginx/conf.d/*.conf;
#add extra file for any extra work
include /etc/nginx/extra.conf.d/*.conf;
resolver 127.0.0.1 ipv6=off valid=40s; # The DNS IP server
#https://www.tweaked.io/guide/nginx-proxying/