Skip to content

Commit

Permalink
Merge pull request #208 from WycliffeAssociates/fix-nginx-config-trai…
Browse files Browse the repository at this point in the history
…ling-slash-attempt2

Fix nginx trailing slash issue, attempt #2
  • Loading branch information
linearcombination authored Jun 18, 2024
2 parents 2c8b0e3 + a247707 commit d06f6a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server {
server_name _;
root /app/build/client;

location ~ .*$ {
location / {
try_files $uri $uri/ @sveltekit;
}

Expand All @@ -20,7 +20,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Sendfile-Type X-Accel-Redirect;

proxy_pass http://sveltekit-server;
proxy_pass http://sveltekit-server/;
proxy_redirect off;

error_page 502 = @static;
Expand Down

0 comments on commit d06f6a3

Please sign in to comment.