This commit is contained in:
2025-06-14 19:27:32 +08:00
parent ea841031df
commit 04a6262e27
2 changed files with 2 additions and 33 deletions

View File

@@ -19,22 +19,6 @@ REDIS_CONF = {
DEBUG = True
ALLOWED_HOSTS = [
"localhost",
"127.0.0.1",
"10.13.114.114",
"150.158.29.156",
"oj.xuyue.cc",
"ojtest.xuyue.cc",
]
CSRF_TRUSTED_ORIGINS = [
"https://oj.xuyue.cc",
"https://ojtest.xuyue.cc",
"http://10.13.114.114:81",
"http://150.158.29.156:8881",
"http://localhost:5173",
]
ALLOWED_HOSTS = ["*"]
DATA_DIR = f"{BASE_DIR}/data"

View File

@@ -18,21 +18,6 @@ REDIS_CONF = {
DEBUG = False
ALLOWED_HOSTS = [
"localhost",
"127.0.0.1",
"10.13.114.114",
"150.158.29.156",
"oj.xuyue.cc",
"ojtest.xuyue.cc",
]
CSRF_TRUSTED_ORIGINS = [
"https://oj.xuyue.cc",
"https://ojtest.xuyue.cc",
"http://10.13.114.114:81",
"http://150.158.29.156:8881",
"http://localhost:5173",
]
ALLOWED_HOSTS = ["*"]
DATA_DIR = "/data"