Fix configs

This commit is contained in:
IRBorisov 2023-09-18 13:05:06 +03:00
parent 5881a51e33
commit 2c8c9693e5
3 changed files with 34 additions and 33 deletions

View File

@ -6,6 +6,23 @@ upstream innerreact {
server frontend:3000;
}
server {
listen 80;
listen [::]:80;
server_name api.portal.acconcept.ru www.api.portal.acconcept.ru;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://api.portal.acconcept.ru$request_uri;
}
}
server {
listen 80;
listen [::]:80;
@ -22,22 +39,6 @@ server {
}
}
server {
listen 80;
listen [::]:80;
server_name api.portal.acconcept.ru www.api.portal.acconcept.ru;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://api.portal.acconcept.ru$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

View File

@ -6,22 +6,6 @@ upstream innerreact {
server frontend:3000;
}
server {
listen 80;
listen [::]:80;
server_name portal.acconcept.ru www.portal.acconcept.ru;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://portal.acconcept.ru$request_uri;
}
}
server {
listen 80;
listen [::]:80;
@ -37,3 +21,19 @@ server {
return 301 https://api.portal.acconcept.ru$request_uri;
}
}
server {
listen 80;
listen [::]:80;
server_name portal.acconcept.ru www.portal.acconcept.ru;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://portal.acconcept.ru$request_uri;
}
}

View File

@ -3,7 +3,7 @@
# SECRET_KEY=
ALLOWED_HOSTS=portal.acconcept.ru;api.portal.acconcept.ru
CSRF_TRUSTED_ORIGINS=https://portal.acconcept.ru;https://api.portal.acconcept.ru
CORS_ALLOWED_ORIGINS=https://portal.acconcept.ru;https://api.portal.acconcept.ru
CORS_ALLOWED_ORIGINS=https://portal.acconcept.ru
# File locations