feat(settings): 添加CSRF受信任的源地址
允许来自指定IP地址的跨站请求,以支持特定环境下的访问需求
This commit is contained in:
@@ -185,6 +185,11 @@ REPORTS_ROOT = BASE_DIR / 'reports' # 可以修改为其他路径
|
||||
CELERY_LOG_FILE = "/var/log/celery/worker.log" # 你的指定日志路径
|
||||
CELERY_LOG_LEVEL = "INFO" # 日志级别
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
"http://14.103.237.41:16003",
|
||||
# 如果你将来有域名,也可以在这里加上,例如 "https://yourdomain.com"
|
||||
]
|
||||
|
||||
CELERY_BROKER_URL = 'redis://:xjjq1234!@localhost:6379/0'
|
||||
CELERY_RESULT_BACKEND = 'redis://:xjjq1234!@localhost:6379/0'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user