diff --git a/oj/dev_settings.py b/oj/dev_settings.py index 8d125b8..6dba915 100644 --- a/oj/dev_settings.py +++ b/oj/dev_settings.py @@ -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" diff --git a/oj/production_settings.py b/oj/production_settings.py index 23c85ea..467b35b 100644 --- a/oj/production_settings.py +++ b/oj/production_settings.py @@ -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"