Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl http2;
- server_name vw.domain.com;
- # Specify SSL config if using a shared one.
- #include conf.d/ssl/ssl.conf;
- ssl_certificate /etc/letsencrypt/live/vw.domain.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/vw.domain.com/privkey.pem;
- # Allow large attachments
- client_max_body_size 128M;
- location / {
- proxy_pass http://vw.domain.com:80;
- 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 $scheme;
- }
- location /notifications/hub {
- proxy_pass http://vw.domain.com:3012;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- location /notifications/hub/negotiate {
- proxy_pass http://vw.domain.com:80;
- }
- location /admin {
- 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 $scheme;
- proxy_pass http://vw.domain.com:80;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment