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