server { listen 80; server_name acidarchon.com www.acidarchon.com localhost; # Serve static files location /static/ { alias /app/staticfiles/; expires 30d; add_header Cache-Control "public, immutable"; } # Proxy to Django location / { proxy_pass http://web:8000; # 'web' is the service name proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # WebSocket support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } }