From eb714718204ad8b440af664ff62f19d2cf3da7da Mon Sep 17 00:00:00 2001 From: Brooooooklyn Date: Wed, 19 Jun 2024 03:01:03 +0000 Subject: [PATCH] fix: nginx config for admin router (#7254) --- .github/deployment/front/affine.nginx.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/deployment/front/affine.nginx.conf b/.github/deployment/front/affine.nginx.conf index 3707f83f9..9a303309d 100644 --- a/.github/deployment/front/affine.nginx.conf +++ b/.github/deployment/front/affine.nginx.conf @@ -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; }