This commit is contained in:
2025-06-14 19:08:41 +08:00
parent 077b224a2a
commit ea841031df
2 changed files with 13 additions and 2 deletions

View File

@@ -24,9 +24,17 @@ ALLOWED_HOSTS = [
"127.0.0.1",
"10.13.114.114",
"150.158.29.156",
"oj.xuyue.cc",
"ojtest.xuyue.cc",
]
CSRF_TRUSTED_ORIGINS = ["http://localhost:5173", "https://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",
]
DATA_DIR = f"{BASE_DIR}/data"

View File

@@ -24,12 +24,15 @@ ALLOWED_HOSTS = [
"10.13.114.114",
"150.158.29.156",
"oj.xuyue.cc",
"ojtest.xuyue.cc",
]
CSRF_TRUSTED_ORIGINS = [
"https://oj.xuyue.cc",
"https://oj.xuyue.cc",
"https://ojtest.xuyue.cc",
"http://10.13.114.114:81",
"http://150.158.29.156:8881",
"http://localhost:5173",
]
DATA_DIR = "/data"