Update sample nginx config

This commit is contained in:
Gabriel Adrian Samfira 2022-10-21 12:36:57 +03:00
parent 3247065c0a
commit b4496fef1c
No known key found for this signature in database
GPG key ID: 7D073DCC2C074CB5

View file

@ -5,6 +5,14 @@ upstream garm_backend {
server { server {
server_name garm.example.com; server_name garm.example.com;
location /api/v1/ws {
proxy_pass http://garm_backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location / { location / {
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Host $http_host;