修改数据路径代码

This commit is contained in:
2026-04-01 14:32:39 +08:00
parent 4bc351ad25
commit 403b7dfacf
3 changed files with 4 additions and 4 deletions

View File

@@ -7,5 +7,5 @@ services:
- "80:80"
volumes:
- ../dist:/usr/share/nginx/html:ro
- ../data:/usr/share/nginx/data:ro
- ../fiction:/usr/share/nginx/fiction:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro

View File

@@ -9,8 +9,8 @@ server {
location / {
try_files $uri $uri/ /index.html;
}
location /data/ {
alias /usr/share/nginx/data/;
location /novel-data/ {
alias /usr/share/nginx/fiction/;
charset utf-8;
}
location /assets/ {