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/ {