2023-09-16 20:32:56 +03:00
|
|
|
upstream innerdjango {
|
|
|
|
server backend:8000;
|
|
|
|
}
|
|
|
|
|
|
|
|
upstream innerreact {
|
|
|
|
server frontend:3000;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2023-09-18 13:05:06 +03:00
|
|
|
server_name api.portal.acconcept.ru www.api.portal.acconcept.ru;
|
2023-09-16 20:32:56 +03:00
|
|
|
server_tokens off;
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
|
|
root /var/www/certbot;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2023-09-18 13:05:06 +03:00
|
|
|
return 301 https://api.portal.acconcept.ru$request_uri;
|
2023-09-16 20:32:56 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2023-09-18 13:05:06 +03:00
|
|
|
server_name portal.acconcept.ru www.portal.acconcept.ru;
|
2023-09-16 20:32:56 +03:00
|
|
|
server_tokens off;
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
|
|
root /var/www/certbot;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2023-09-18 13:05:06 +03:00
|
|
|
return 301 https://portal.acconcept.ru$request_uri;
|
2023-09-16 20:32:56 +03:00
|
|
|
}
|
|
|
|
}
|