19 lines
626 B
Nginx Configuration File
19 lines
626 B
Nginx Configuration File
location / {
|
|||
|
|
|
||
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
||
|
|
|
||
|
|
# Ces en-têtes ne sont pas décoratifs : adapter-node en déduit l'origine
|
||
|
|
# des requêtes. Les omettre ferait échouer toute soumission de formulaire.
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
|
proxy_set_header X-Forwarded-Host $host;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Connection "";
|
||
|
|
proxy_redirect off;
|
||
|
|
|
||
|
|
# L'application ne reçoit aucun téléversement : une limite basse suffit.
|
||
|
|
client_max_body_size 1M;
|
||
|
|
}
|