rename splash to notfound

part of #755
This commit is contained in:
Girish Ramakrishnan
2021-01-08 09:51:15 -08:00
parent 05c331172a
commit 0ef0c77305

View File

@@ -28,7 +28,7 @@ server {
alias /home/yellowtent/platformdata/acme/;
}
# for default server, serve the splash page. for other endpoints, redirect to HTTPS
# for default server, serve the notfound page. for other endpoints, redirect to HTTPS
location / {
<% if ( endpoint === 'admin' || endpoint === 'setup' ) { %>
return 301 https://$host$request_uri;
@@ -38,7 +38,7 @@ server {
return 301 https://<%= redirectTo %>$request_uri;
<% } else if ( endpoint === 'ip' ) { %>
root <%= sourceDir %>/dashboard/dist;
try_files /splash.html =404;
try_files /notfound.html =404;
<% } %>
}
}
@@ -279,7 +279,7 @@ server {
<% } else if ( endpoint === 'ip' ) { %>
location / {
root <%= sourceDir %>/dashboard/dist;
try_files /splash.html =404;
try_files /notfound.html =404;
}
<% } %>
}