update environment configuration for local development, enhance database initialization, and improve Nginx routing for admin access
This commit is contained in:
1 parent
2e061dff28
commit
1ae0ad121b
10 files changed
+185
-37
No files matched your search
@@ -3,6 +3,9 @@ events {
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
resolver 127.0.0.11 ipv6=off valid=30s;
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
@@ -24,6 +27,18 @@ http {
|
||||
root /srv/frontend;
|
||||
index index.html;
|
||||
|
||||
location = /admin {
|
||||
return 301 /admin/;
|
||||
}
|
||||
|
||||
location /admin/ {
|
||||
try_files $uri $uri/ /admin/index.html;
|
||||
}
|
||||
|
||||
location /assets/ {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
# Serve static frontend
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
Reference in new issue
Block a user