mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
fix: nginx config for admin router (#7254)
This commit is contained in:
12
.github/deployment/front/affine.nginx.conf
vendored
12
.github/deployment/front/affine.nginx.conf
vendored
@@ -1,12 +1,14 @@
|
||||
server {
|
||||
listen 8080;
|
||||
location / {
|
||||
root /app/dist;
|
||||
try_files $uri $uri/ /index.html;
|
||||
location /admin {
|
||||
root /app/;
|
||||
index index.html;
|
||||
try_files $uri/index.html $uri/ $uri /admin/index.html;
|
||||
}
|
||||
|
||||
location /admin {
|
||||
root /app/admin;
|
||||
location / {
|
||||
root /app/dist/;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user