webbson

nginx config

Oct 13th, 2015
1,416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.50 KB | None | 0 0
  1. server {
  2.     server_name mysite.webbson.net;
  3.     listen 443 ssl http2;
  4.     listen [::]:443 ssl http2;
  5.  
  6.     add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
  7.     add_header Public-Key-Pins 'pin-sha256="blahblahsecurekey"; max-age=5184000; includeSubDomains';
  8.        
  9.     root /site/root;
  10.     index index.html;
  11.     auth_basic "Access is denied!";
  12.     auth_basic_user_file /authfile/location
  13.  
  14.     location / {
  15.             try_files $uri $uri/ =404;
  16.     }
  17.  
  18.     location /sabnzbd  {
  19.             proxy_pass http://10.13.37.114:8080;
  20.             proxy_set_header Host $host;
  21.             proxy_set_header X-Real-IP $remote_addr;
  22.             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  23.     }
  24.  
  25.     location /sonarr  {
  26.             proxy_pass http://10.13.37.114:8989;
  27.             proxy_set_header Host $host;
  28.             proxy_set_header X-Real-IP $remote_addr;
  29.             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  30.     }
  31.  
  32.     location /couchpotato  {
  33.                 proxy_pass http://10.13.37.114:5050;
  34.                 proxy_set_header Host $host;
  35.                 proxy_set_header X-Real-IP $remote_addr;
  36.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  37.     }
  38.  
  39.     location /transmission  {
  40.             proxy_pass http://10.13.37.114:9091;
  41.             proxy_set_header Host $host;
  42.             proxy_set_header X-Real-IP $remote_addr;
  43.             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment