Skip to content

Commit

Permalink
Merge pull request #211 from WycliffeAssociates/updated-nginx-config-…
Browse files Browse the repository at this point in the history
…fix-redirect

Updated nginx config fix redirect
  • Loading branch information
linearcombination authored Jun 19, 2024
2 parents 0cb9d68 + a64fca7 commit 451c3e0
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 463 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 / {
$uri $uri/ @sveltekit;
try_files $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$request_uri;
proxy_redirect off;

error_page 502 = @static;
Expand Down
Loading

0 comments on commit 451c3e0

Please sign in to comment.