diff --git a/src/back/portal/settings.py b/src/back/portal/settings.py index d6f78a23e..061b92da4 100644 --- a/src/back/portal/settings.py +++ b/src/back/portal/settings.py @@ -13,6 +13,7 @@ https://docs.djangoproject.com/en/4.2/ref/settings/ from pathlib import Path import os +DATA_UPLOAD_MAX_NUMBER_FIELDS=100000 CORS_ORIGIN_ALLOW_ALL=True # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -37,12 +38,8 @@ SWAGGER_SETTINGS = { } } } -CSRF_TRUSTED_ORIGINS = [ - 'http://localhost', - 'http://127.0.0.1', - 'http://yourdomain.com', # Add your production domain here -] -ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','0.0.0.0'] +ALLOWED_HOSTS = str(os.getenv('DJANGO_ALLOWED_HOSTS')).split(', ') +CSRF_TRUSTED_ORIGINS = str(os.getenv('DJANGO_CSRF_TRUSTED_ORIGINS')).split(', ') CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.core.RedisChannelLayer", diff --git a/src/front/package.json b/src/front/package.json index 3ccc2fcc8..939fc18e3 100644 --- a/src/front/package.json +++ b/src/front/package.json @@ -1,6 +1,6 @@ { "name": "front", - "version": "1.2.1", + "version": "1.2.2", "type": "module", "scripts": { "dev": "vite",