♻️ fixed proxy api uri

This commit is contained in:
Sergey Yarkov 2020-03-07 17:08:51 +03:00
parent ece8e35f87
commit 86b8e11fb1
2 changed files with 3 additions and 7 deletions

View File

@ -11,6 +11,6 @@ module.exports = withSass({
return config
},
env: {
GRAPHQL_API_URI: 'http://localhost/api/graphql'
GRAPHQL_API_URI: 'http://localhost:3000/api/graphql'
}
})

View File

@ -1,11 +1,7 @@
server {
listen 80;
server_name localhost;
# location / {
# proxy_pass http://apollo-next-graphql:3000;
# }
location / {
proxy_pass http://apollo-next-graphql:3000;
proxy_http_version 1.1;
@ -13,7 +9,7 @@ server {
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {