From 96df708e3a571f50016ed228d8660dab5c681fbc Mon Sep 17 00:00:00 2001 From: Brooooooklyn Date: Tue, 18 Jun 2024 09:07:53 +0000 Subject: [PATCH] chore: fix web nginx conf (#7246) --- .github/deployment/front/affine.nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/deployment/front/affine.nginx.conf b/.github/deployment/front/affine.nginx.conf index 67e2caaf53..3707f83f91 100644 --- a/.github/deployment/front/affine.nginx.conf +++ b/.github/deployment/front/affine.nginx.conf @@ -1,13 +1,13 @@ server { listen 8080; - root /app; - - location /admin { - try_files $uri $uri/ /admin/index.html; + location / { + root /app/dist; + try_files $uri $uri/ /index.html; } - location / { - try_files $uri $uri/ /dist/index.html; + location /admin { + root /app/admin; + try_files $uri $uri/ /index.html; } error_page 404 /404.html;