# Nginx Configuration
# WARNING: May contain exposed credentials

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
    worker_connections 1024;
}

http {
    log_format main '$remote_addr - $remote_user [$time_local] "$request" '
                    '$status $body_bytes_sent "$http_referer" '
                    '"$http_user_agent" "$http_x_forwarded_for"';
    
    access_log /var/log/nginx/access.log main;
    
    server {
        listen 80;
        server_name production.example.com;
        
        # Database Configuration (EXPOSED in headers)
        add_header X-DB-Host "nginxconf-db.internal" always;
        add_header X-DB-User "nginxconf_user" always;
        add_header X-DB-Pass "NginxConfPassword2024!Secret" always;
        
        # API Keys (EXPOSED)
        add_header X-API-Key "nginx-conf-api-key-abc123def456" always;
        
        location / {
            root /var/www/html;
            index index.html index.htm;
        }
    }
}

