mirror of
https://github.com/go-vikunja/website.git
synced 2026-02-25 06:23:51 +00:00
fix: only pass /api/ routes to nginx
This fixes rendering of 404 routes.
This commit is contained in:
+3
-2
@@ -30,7 +30,7 @@ server {
|
||||
|
||||
location / {
|
||||
root /app/dist/client/;
|
||||
try_files $uri $uri/index.html @nodejs;
|
||||
try_files $uri $uri/index.html =404;
|
||||
}
|
||||
|
||||
location /survey {
|
||||
@@ -39,11 +39,12 @@ server {
|
||||
|
||||
error_page 404 /404.html;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
location @nodejs {
|
||||
location /api/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Scheme $scheme;
|
||||
|
||||
Reference in New Issue
Block a user