6 Commits

Author SHA1 Message Date
Cheng Zhou d23dead775 加固部署配置与敏感路径拦截
Storage Persistence Guard / storage-persistence-audit (pull_request) Has been cancelled
2026-06-22 15:35:48 +08:00
Cheng Zhou ee70531794 Merge branch 'main' into release 2026-03-31 11:21:35 +08:00
Cheng Zhou d776e2ba7c release: merge main for users trailing slash fix 2026-03-31 10:09:16 +08:00
Cheng Zhou d2bdc49b7c release: merge main for frontend api config removal 2026-03-31 09:45:32 +08:00
Cheng Zhou f41b75722f release: merge main for nginx 8888 port change 2026-03-31 09:35:52 +08:00
Cheng Zhou 25dc484a22 release: merge main for nginx same-origin restore 2026-03-31 09:17:33 +08:00
3 changed files with 28 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
.git
.gitignore
.worktrees
.agents
.claude
.DS_Store
.env
.env.*
**/.env
**/.env.*
pg_data
tmp
.install-logs
.pytest_cache
**/.pytest_cache
**/__pycache__
**/*.pyc
frontend/node_modules
frontend/dist
backend/.coverage
backend/.pytest_cache
nginx/certs
-4
View File
@@ -10,8 +10,6 @@ services:
volumes: volumes:
# 持久化数据到 Linux 本地,防止重启丢失 # 持久化数据到 Linux 本地,防止重启丢失
- ./pg_data:/var/lib/postgresql/data - ./pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ctms_user -d ctms_db"] test: ["CMD-SHELL", "pg_isready -U ctms_user -d ctms_db"]
interval: 5s interval: 5s
@@ -26,8 +24,6 @@ services:
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: ctms_backend container_name: ctms_backend
restart: always restart: always
ports:
- "8000:8000"
environment: environment:
DATABASE_URL: postgresql+asyncpg://ctms_user:secret_password@db/ctms_db DATABASE_URL: postgresql+asyncpg://ctms_user:secret_password@db/ctms_db
depends_on: depends_on:
+6
View File
@@ -42,6 +42,12 @@ http {
add_header Cache-Control "public, max-age=86400" always; add_header Cache-Control "public, max-age=86400" always;
} }
location ~* (^|/)(\.git|\.env($|[./_-])|wp-config\.php|config\.php|database\.yml|backup($|[._/-])) {
access_log off;
log_not_found off;
return 404;
}
location /api/ { location /api/ {
proxy_pass http://backend; proxy_pass http://backend;
proxy_set_header Host $host; proxy_set_header Host $host;