From 64c399ba1b83b3911e78fdc04b271e2545cb23eb Mon Sep 17 00:00:00 2001 From: CryptoTitan Date: Mon, 16 Dec 2024 14:36:33 +0100 Subject: [PATCH] Update default.conf --- src/default.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/default.conf b/src/default.conf index 7c12df4..c3ac953 100644 --- a/src/default.conf +++ b/src/default.conf @@ -6,8 +6,10 @@ server { # Add index.php to setup Nginx, PHP & PHP-FPM config index index.php index.html index.htm index.nginx-debian.html; error_log /var/log/nginx/error.log; - access_log /var/log/nginx/access.log; root /var/www/html; + log_format custom_log '$remote_addr - $remote_user [$time_local] "$request" ' + '"$status" "$http_x_forwarded_proto" "$request_scheme" "$https"'; + access_log /var/log/nginx/access.log custom_log; # Trust Traefik headers for SSL detection set_real_ip_from 0.0.0.0/0; # Replace with Traefik's IP range if known