Skip to content

Commit

Permalink
fix: nginx deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Feb 2, 2024
1 parent f97bf52 commit 1c50d20
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ server {
listen ${PORT};
listen [::]:${PORT};
server_name localhost;

# frontend
location / {
proxy_pass ${FRONTEND};
Expand All @@ -12,15 +13,12 @@ server {
location /backend/ {
rewrite /backend/(.*) /$1 break;
proxy_pass ${BACKEND};
proxy_set_header content-type application/json;
# proxy_set_header Host $host;
}

# graphql API composition
location /wundergraph/graphql {
rewrite /wundergraph/graphql /graphql break;
proxy_pass ${WUNDERGRAPH};
# proxy_set_header Host ${WUNDERGRAPH};
}
}

0 comments on commit 1c50d20

Please sign in to comment.