Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
server { server_name qbit.test.ru www.qbit.test.ru; access_log /var/log/nginx/qbit.test.ru-access.log; error_log /var/log/nginx/qbit.test.ru-error.log; include /etc/nginx/templates/letsencrypt.conf; location / { proxy_pass http://192.168.1.22:8181/; proxy_set_header X-Forwarded-Host $server_name:$server_port; proxy_hide_header Referer; proxy_hide_header Origin; proxy_set_header Referer ''; proxy_set_header Origin ''; add_header X-Frame-Options "SAMEORIGIN"; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/qbit.test.ru/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/qbit.test.ru/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = qbit.test.ru) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; server_name qbit.test.ru www.qbit.test.ru; return 404; # managed by Certbot }