Network experiment

This commit is contained in:
IRBorisov 2023-08-11 11:18:10 +03:00
parent 01fe367845
commit 7a3ea1bbba
3 changed files with 7 additions and 6 deletions

View File

@ -10,7 +10,7 @@ server {
listen 8000 ssl; listen 8000 ssl;
ssl_certificate /etc/ssl/private/portal-cert.pem; ssl_certificate /etc/ssl/private/portal-cert.pem;
ssl_certificate_key /etc/ssl/private/portal-key.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 / { location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@ -30,7 +30,7 @@ server {
listen 3000 ssl; listen 3000 ssl;
ssl_certificate /etc/ssl/private/portal-cert.pem; ssl_certificate /etc/ssl/private/portal-cert.pem;
ssl_certificate_key /etc/ssl/private/portal-key.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 / { location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@ -1,8 +1,8 @@
# Application settings # Application settings
ALLOWED_HOSTS=localhost;portal.acconcept.ru;dev.concept.ru 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:3000 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:3000 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 # File locations

View File

@ -1,6 +1,7 @@
// Constants // Constants
const prod = { 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://localhost:8000',
// backend: 'https://api.portal.concept.ru', // backend: 'https://api.portal.concept.ru',
}; };