# HTTP server { listen 80; listen [::]:80; server_name localhost; client_max_body_size 64M; # Redirection HTTP -> HTTPS #return 301 https://$host$request_uri; location / { root /var/www/html/; index index.html; # proxy_buffering off; # proxy_redirect off; # 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-Host $server_name; # proxy_set_header X-Forwarded-Proto $scheme; # proxy_pass http://127.0.0.1:6060; } # Nécessaire pour les redirections internes à Hugo location /feed { return 302 https://example.com/index.xml; } }