Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###### bitshares.nu ######
- server {
- listen 80;
- server_name bitshares.nu;
- root /var/www/html;
- rewrite ^ https://$server_name$request_uri? permanent;
- index index.html index.htm;
- location / {
- try_files $uri $uri/ =404;
- }
- }
- upstream websockets {
- server localhost:8090;
- }
- ###### bitshares ssl
- server {
- listen 443 ssl;
- #
- server_name bitshares.nu;
- #
- root /var/www/html;
- #
- index index.html index.htm;
- #
- ssl_certificate /etc/nginx/ssl/ssl-bundle.crt;
- ssl_certificate_key /etc/nginx/ssl/bitshares.nu.key;
- #
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:50m;
- ssl_stapling on;
- ssl_stapling_verify on;
- add_header Strict-Transport-Security max-age=15768000;
- location / {
- try_files $uri $uri/ =404;
- }
- location ~ /ws/? {
- access_log off;
- proxy_pass http://websockets;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement