Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name domain.com;
- charset utf-8;
- return 301 https://domain.com;
- }
- # HTTPS
- server {
- listen 443 ssl;
- server_name domain.com;
- ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
- ssl_session_cache shared:SSL:1m;
- ssl_session_timeout 5m;
- ssl_ciphers HIGH:!aNULL:!MD5;
- ssl_prefer_server_ciphers on;
- location /ss14/sandbox/ {
- client_max_body_size 512M;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- #proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header Upgrade $http_upgrade;
- proxy_cache_bypass $http_upgrade;
- proxy_pass http://127.0.0.1:1212/;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement