Redirect to / on dashboard 404

This commit is contained in:
Johannes Zellner
2023-06-19 15:02:28 +02:00
parent c8fe2611ba
commit 38860cd70c

View File

@@ -269,9 +269,14 @@ server {
# client_max_body_size 1m;
# }
location @dashboarderrorredirect {
return 302 /;
}
location / {
root <%= sourceDir %>/dashboard/dist;
index index.html index.htm;
error_page 404 = @dashboarderrorredirect;
}
# Cross domain webfont access for proxy auth login page https://github.com/h5bp/server-configs/issues/85