16 lines
422 B
Plaintext
16 lines
422 B
Plaintext
|
location /graphql-test {
|
||
|
proxy_pass http://127.0.0.1:3000; # use for development
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
}
|
||
|
|
||
|
# Websocket connection
|
||
|
location /v1/graphql {
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
proxy_set_header Connection "Upgrade";
|
||
|
proxy_set_header Host $host;
|
||
|
proxy_pass http://127.0.0.1:8080;
|
||
|
}
|