15 lines
622 B
Text
15 lines
622 B
Text
|
|
# Front nginx local de l'application {{ app_python_application.nom }} — genere par Set-OPS (app_python).
|
||
|
|
# L'app ecoute en 127.0.0.1:{{ app_python_application.port }} ; le frontal et l'edge relaient ici.
|
||
|
|
server {
|
||
|
|
listen {{ app_python_port_front }};
|
||
|
|
server_name {{ app_python_application.noms | join(' ') }};
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://127.0.0.1:{{ app_python_application.port }};
|
||
|
|
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;
|
||
|
|
}
|
||
|
|
}
|