Actualiser cookcli/rootfs/etc/nginx/nginx.conf
This commit is contained in:
parent
932f21e127
commit
cd4d89c550
|
|
@ -14,17 +14,13 @@ http {
|
||||||
access_log /proc/1/fd/1;
|
access_log /proc/1/fd/1;
|
||||||
error_log /proc/1/fd/2;
|
error_log /proc/1/fd/2;
|
||||||
|
|
||||||
upstream cookcli_backend {
|
|
||||||
server 127.0.0.1:9081; # Le port interne de CookCLI
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 9080;
|
listen 9080;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
# Proxy simple et direct vers CookCLI
|
# Proxy simple et direct vers CookCLI
|
||||||
proxy_pass http://cookcli_backend;
|
proxy_pass http://127.0.0.1:9081;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
@ -49,7 +45,7 @@ http {
|
||||||
|
|
||||||
# Proxy simple vers CookCLI
|
# Proxy simple vers CookCLI
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://cookcli_backend;
|
proxy_pass http://127.0.0.1:9081;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue