Skip to content

Commit

Permalink
Merge pull request #209 from WycliffeAssociates/nginx-trailing-slash-…
Browse files Browse the repository at this point in the history
…fix-attempt3

Fix nginx trailing slash issue (with redirect)
  • Loading branch information
linearcombination authored Jun 18, 2024
2 parents d06f6a3 + 4c48af8 commit 3931df4
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 @@ -9,7 +9,7 @@ server {
root /app/build/client;

location / {
try_files $uri $uri/ @sveltekit;
$uri $uri/ @sveltekit;
}

location @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 3931df4

Please sign in to comment.