4NK_vault/storage/dev/nginx/route_lecoffre_hmr.conf

12 lines
536 B
Plaintext

location ^~ $URL_ROUTE_LECOFFRE_FRONT_HMR/ {
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;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
rewrite ^$URL_ROUTE_LECOFFRE_FRONT_HMR/(.*)$ $URL_ROUTE_LECOFFRE_FRONT/$1 break;
proxy_pass http://localhost:$LECOFFRE_FRONT_PORT;
}