# Debug: Log all IP-related variables
# Add this temporarily to see what nginx receives

# Log real IP detection
add_header X-Debug-Remote-Addr $remote_addr always;
add_header X-Debug-X-Forwarded-For $http_x_forwarded_for always;
add_header X-Debug-X-Real-IP $http_x_real_ip always;
add_header X-Debug-Real-Client-IP $real_client_ip always;
add_header X-Debug-Maintenance $maintenance always;
