ajout du orange pi IP

This commit is contained in:
2024-02-13 16:00:35 +01:00
parent c518aac911
commit 5beded02c5

View File

@@ -31,6 +31,7 @@ ALLOWED_HOSTS = ["rh.ambulance-clerc.ch"]
if cfg_dev_mode: if cfg_dev_mode:
ALLOWED_HOSTS.append("127.0.0.1") ALLOWED_HOSTS.append("127.0.0.1")
ALLOWED_HOSTS.append("33.144.144.6") ALLOWED_HOSTS.append("33.144.144.6")
ALLOWED_HOSTS.append("33.144.144.13")
CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch'] CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch']
@@ -136,6 +137,10 @@ MIDDLEWARE = [
CORS_ALLOWED_ORIGINS = [ CORS_ALLOWED_ORIGINS = [
"http://33.144.144.6:5173", # Ajoutez ici l'URL de votre application frontend , "http://33.144.144.6:5173", # Ajoutez ici l'URL de votre application frontend ,
] ]
if cfg_dev_mode:
CORS_ALLOWED_ORIGINS.append("https://33.144.144.13:5173")
MIDDLEWARE += ('apilog.middleware.APILogMiddleware',) MIDDLEWARE += ('apilog.middleware.APILogMiddleware',)