odf_new/web/nginx.conf
zpc 9e44533d29
Some checks failed
continuous-integration/drone/push Build is failing
feat: 添加CI/CD配置和Docker部署文件
- 新增 .drone.yml 流水线配置(server/admin/web 三服务并行构建+部署)
- 新增 web/Dockerfile 和 web/nginx.conf(H5 Web Docker打包)
- 新增 docker-compose.yml(使用Harbor镜像部署)
- 新增 CI-CD部署文档.md
- 更新 server Dockerfile 基础镜像为内网Harbor地址
2026-03-26 10:39:01 +08:00

22 lines
410 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# 静态资源缓存
location /assets/ {
expires 30d;
add_header Cache-Control "public, immutable";
}
location /static/ {
expires 30d;
add_header Cache-Control "public, immutable";
}
}