fix: ALLOWED_HOSTS 改为通配符,解决 Traefik 转发 400 问题
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m16s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m16s
Traefik 转发请求时 Host 头可能不是原始域名,导致 Django 返回 400。 Ingress 已做域名路由,Django 层无需重复检查。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cfe5031d62
commit
10e5bd57df
@ -26,7 +26,7 @@ spec:
|
||||
- name: DJANGO_DEBUG
|
||||
value: "False"
|
||||
- name: DJANGO_ALLOWED_HOSTS
|
||||
value: "video-huoshan-api.airlabs.art,localhost"
|
||||
value: "*"
|
||||
- name: DJANGO_SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user