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