This commit is contained in:
xuyue committed 2025-06-14 19:08:41 +08:00
1 parent 077b224a2a
commit ea841031df
2 files changed
+12 -1

No files matched your search

+9 -1
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"
+3
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://ojtest.xuyue.cc",
"http://10.13.114.114:81",
"http://150.158.29.156:8881",
"http://localhost:5173",
]
DATA_DIR = "/data"