2023-03-11 23:11:50 +08:00
|
|
|
location /graphql-test {
|
2023-04-28 00:38:44 +08:00
|
|
|
proxy_pass http://127.0.0.1:3000;
|
2023-03-11 23:11:50 +08:00
|
|
|
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;
|
2023-04-28 00:38:44 +08:00
|
|
|
proxy_pass http://127.0.0.1:8080; #Hasura
|
2023-03-11 23:11:50 +08:00
|
|
|
}
|
2023-12-13 21:39:34 +08:00
|
|
|
|
|
|
|
location /api/rest {
|
|
|
|
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; #Hasura
|
|
|
|
}
|