67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
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;
|
|
|
|
gzip on;
|
|
gzip_disable "msie6";
|
|
|
|
gzip_vary on;
|
|
gzip_proxied any;
|
|
gzip_comp_level 6;
|
|
gzip_buffers 16 8k;
|
|
gzip_http_version 1.1;
|
|
gzip_min_length 256;
|
|
gzip_types
|
|
application/atom+xml
|
|
application/geo+json
|
|
application/javascript
|
|
application/x-javascript
|
|
application/json
|
|
application/ld+json
|
|
application/manifest+json
|
|
application/rdf+xml
|
|
application/rss+xml
|
|
application/xhtml+xml
|
|
application/xml
|
|
font/eot
|
|
font/otf
|
|
font/ttf
|
|
image/svg+xml
|
|
text/css
|
|
text/javascript
|
|
text/plain
|
|
text/xml;
|
|
|
|
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;
|
|
}
|
|
|
|
location /static {
|
|
proxy_pass http://arkids-main-backend-production:5000;
|
|
}
|
|
}
|