arkids-nginx/configs/nginx.conf.prod
2023-08-18 10:39:33 +03:00

33 lines
681 B
Plaintext

server {
server_name arkids.ru;
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name arkids.ru;
ssl_certificate /etc/nginx/ssl/arkids.ru.crt;
ssl_certificate_key /etc/nginx/ssl/arkids.ru.key;
location / {
proxy_pass http://arkids-main-frontend-production:3000;
# Allow the use of websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location /api {
proxy_pass http://arkids-main-backend-production:5000;
}
}