diff --git a/nginx/default.conf b/nginx/default.conf index ad278dca..e309b358 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -10,7 +10,7 @@ server { listen 8000 ssl; ssl_certificate /etc/ssl/private/portal-cert.pem; ssl_certificate_key /etc/ssl/private/portal-key.pem; - server_name dev.concept.ru www.dev.concept.ru api.portal.acconcept.ru www.api.portal.acconcept.ru; + server_name dev.concept.ru www.dev.concept.ru api.portal.acconcept.ru www.api.portal.acconcept.ru mail.acoconcept.ru www.mail.acoconcept.ru; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; @@ -30,7 +30,7 @@ server { listen 3000 ssl; ssl_certificate /etc/ssl/private/portal-cert.pem; ssl_certificate_key /etc/ssl/private/portal-key.pem; - server_name dev.concept.ru www.dev.concept.ru portal.acconcept.ru www.portal.acconcept.ru; + server_name dev.concept.ru www.dev.concept.ru portal.acconcept.ru www.portal.acconcept.ru mail.acoconcept.ru www.mail.acoconcept.ru; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; diff --git a/rsconcept/backend/.env.prod b/rsconcept/backend/.env.prod index c8c8bfd2..63fcbcef 100644 --- a/rsconcept/backend/.env.prod +++ b/rsconcept/backend/.env.prod @@ -1,8 +1,8 @@ # Application settings -ALLOWED_HOSTS=localhost;portal.acconcept.ru;dev.concept.ru -CSRF_TRUSTED_ORIGINS=https://dev.concept.ru:3000;https://localhost:3000;https://portal.acconcept.ru:3000 -CORS_ALLOWED_ORIGINS=https://dev.concept.ru:3000;https://localhost:3000;https://portal.acconcept.ru:3000 +ALLOWED_HOSTS=localhost;portal.acconcept.ru;dev.concept.ru;mail.acoconcept.ru; +CSRF_TRUSTED_ORIGINS=https://dev.concept.ru:3000;https://localhost:3000;https://portal.acconcept.ru;https://mail.acconcept.ru:8081;https://mail.acconcept.ru:8082 +CORS_ALLOWED_ORIGINS=https://dev.concept.ru:3000;https://localhost:3000;https://portal.acconcept.ru;https://mail.acconcept.ru:8081;https://mail.acconcept.ru:8082 # File locations diff --git a/rsconcept/frontend/src/utils/constants.ts b/rsconcept/frontend/src/utils/constants.ts index 40928e58..8019e12b 100644 --- a/rsconcept/frontend/src/utils/constants.ts +++ b/rsconcept/frontend/src/utils/constants.ts @@ -1,6 +1,7 @@ // Constants const prod = { - backend: 'https://dev.concept.ru:8000', + backend: 'https://mail.acconcept.ru:8082', + // backend: 'https://dev.concept.ru:8000', // backend: 'https://localhost:8000', // backend: 'https://api.portal.concept.ru', };