2024-08-13 23:57:26 +03:00
|
|
|
server {
|
|
|
|
listen 212.109.196.217:443 ssl;
|
|
|
|
listen [2a01:230:4:700::6969]:443 ssl;
|
|
|
|
|
|
|
|
server_name cit.csasq.ru;
|
|
|
|
server_tokens off;
|
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/csasq.ru/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/csasq.ru/privkey.pem;
|
|
|
|
|
|
|
|
keepalive_timeout 30;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
include /opt/cit-is-bot/nginx/secure-headers.conf;
|
|
|
|
include ./conf.d/http-proxy.conf;
|
|
|
|
|
|
|
|
proxy_pass http://cit.csasq.ru;
|
|
|
|
}
|
|
|
|
|
2024-08-15 00:57:30 +03:00
|
|
|
location /ws {
|
|
|
|
include /opt/cit-is-bot/nginx/secure-headers.conf;
|
|
|
|
include ./conf.d/ws-proxy.conf;
|
|
|
|
|
|
|
|
proxy_pass http://cit.csasq.ru;
|
|
|
|
}
|
|
|
|
|
2024-08-13 23:57:26 +03:00
|
|
|
location /static/ {
|
|
|
|
include /opt/cit-is-bot/nginx/secure-headers.conf;
|
|
|
|
include ./conf.d/gzip.conf;
|
|
|
|
|
|
|
|
root /opt/cit-is-bot;
|
|
|
|
expires -1;
|
|
|
|
|
|
|
|
add_header Service-Worker-Allowed /;
|
|
|
|
}
|
|
|
|
}
|