Skip to content

Commit

Permalink
nginx ok! TOC served - content does not work yet
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelebarre committed Oct 29, 2024
1 parent b9eb14d commit c09ee3c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,10 @@ http {

# Route /api requests to the backend service
location /api {
rewrite /api/(.*) /$1 break;
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_pass http://backend/api;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

location /sockjs-node {
proxy_pass http://frontend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}

# Serve frontend for all other routes
Expand All @@ -46,9 +37,5 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}

# You may need this to prevent return 404 recursion.
# location = /404.html {
# internal;
# }
}
}

0 comments on commit c09ee3c

Please sign in to comment.