Update sample nginx config
This commit is contained in:
parent
3247065c0a
commit
b4496fef1c
1 changed files with 8 additions and 0 deletions
8
testdata/nginx-server.conf
vendored
8
testdata/nginx-server.conf
vendored
|
|
@ -5,6 +5,14 @@ upstream garm_backend {
|
|||
server {
|
||||
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 / {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue