Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # HTTP Server info (Un-Secured)
- #-------------------------------------------------------------------------
- server {
- listen 80;
- server_name username.asuscomm.com 192.168.1.198 localhost;
- return 301 https://$server_name$request_uri; # enforce https
- }
- # HTTPS Server info (Secured)
- #-------------------------------------------------------------------------
- server {
- server_name username.asuscomm.com 192.168.1.198;
- listen 443 ssl;
- ssl_certificate /etc/nginx/ssl/nginx.crt;
- ssl_certificate_key /etc/nginx/ssl/nginx.key;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
- ssl_session_cache shared:SSL:10m;
- # Plex at port 32400 **WORKS**
- #-------------------------------------------------------------------------
- location /web {
- proxy_pass http://127.0.0.1:32400;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- # Redirects /plex to /web so you can use /plex in your address
- location /plex {
- proxy_pass http://127.0.0.1/web;
- }
- # Radarr at port 7878 **WORKS**
- #-------------------------------------------------------------------------
- location /radarr {
- proxy_pass http://127.0.0.1:7878;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- # Sonarr at port 8989 **WORKS - but no AUTH**
- #-------------------------------------------------------------------------
- location /nzbdrone {
- proxy_pass http://127.0.0.1:8989;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- # deluge at port 8112 **Does not connect at all**
- #-------------------------------------------------------------------------
- location /deluge {
- proxy_pass http://127.0.0.1:8112;
- proxy_set_header X-Deluge-Base "/deluge/";
- #proxy_set_header X-Real-IP $remote_addr;
- #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- auth_basic "Password Required";
- auth_basic_user_file /etc/nginx/.htpasswd;
- }
- # NZBGet at port 6789 **WORKS - but no AUTH**
- #-------------------------------------------------------------------------
- location /nzbget {
- proxy_pass http://127.0.0.1:6789;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- auth_basic "Password Required";
- auth_basic_user_file /etc/nginx/.htpasswd;
- }
- # Headphones at port 8181 **WORKS**
- #-------------------------------------------------------------------------
- location /headphones {
- proxy_pass http://127.0.0.1:8181;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement