Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name testvoice.diamondbots.ru www.testvoice.diamondbots.ru;
- return 302 https://$server_name$request_uri;
- }
- server {
- # SSL configuration
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- ssl on;
- ssl_certificate /etc/ssl/certs/cert.pem;
- ssl_certificate_key /etc/ssl/private/key.pem;
- ssl_client_certificate /etc/ssl/certs/cloudflare.crt;
- ssl_verify_client on;
- server_name testvoice.diamondbots.ru www.testvoice.diamondbots.ru;
- root /var/www/testvoice.diamondbots.ru;
- index index.html index.htm index.nginx-debian.html;
- location /server {
- # rewrite ^/server/(.*) /$1 break;
- proxy_pass http://127.0.0.1:3443;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_connect_timeout 86400h;
- proxy_send_timeout 86400h;
- proxy_read_timeout 86400h;
- }
- location /client {
- rewrite ^/client/(.*) /$1 break;
- try_files $uri /index.html;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement