@@ -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;
|
||||
}
|
||||
<% } %>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user