From 713800f615375205859be59a8b4f51f4055d552e Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 4 Aug 2023 08:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=8D=E7=AB=AF=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-docker.yml | 4 ++-- nginx.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 0f622331..af12a47e 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -38,8 +38,8 @@ jobs: cd MoviePilot-Frontend yarn && yarn build cd .. - mkdir -p public - cp -rf ./MoviePilot-Frontend/dist/* ./public/ + mkdir -p /public + cp -rf ./MoviePilot-Frontend/dist/* /public/ rm -rf MoviePilot-Frontend chmod +x start.sh diff --git a/nginx.conf b/nginx.conf index 82a3ea88..1c37d54a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -30,7 +30,7 @@ http { # 主目录 expires off; add_header Cache-Control "no-cache, no-store, must-revalidate"; - root /app/public; + root /public; try_files $uri $uri/ /index.html; } @@ -38,7 +38,7 @@ http { # 静态资源 expires 7d; add_header Cache-Control "public"; - root /app/public; + root /public; } location /api/v1/site/icon/ {