Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # example reverseproxy for shinobi-cctv (provided by To-mos on reddit) - no monitors
- server {
- # reverse proxy for https ipv4&6
- listen 443 ssl;
- listen [::]:443 ssl;
- server_name cctv.*;
- # include /etc/nginx/ssl.conf;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- #proxy_set_header Host $host;
- proxy_set_header X-NginX-Proxy false;
- proxy_pass http://192.168.1.245:8080;
- proxy_redirect off;
- }
- # Requests for socket.io are passed on to Node
- location ~* \.io {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy false;
- proxy_pass http://192.168.1.245:8080;
- proxy_redirect off;
- # websocket specific
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- }
- ssl_certificate /etc/letsencrypt/live/cctv.jewettracing.com/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/cctv.jewettracing.com/privkey.pem; # managed by Certbot
- }
Add Comment
Please, Sign In to add comment