Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- error_log logs/error.log;
- error_log logs/error.log notice;
- error_log logs/error.log info;
- events { worker_connections 1024; }
- http {
- include mime.types;
- #include ssl.conf;
- default_type application/octet-stream;
- #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- # '$status $body_bytes_sent "$http_referer" '
- # '"$http_user_agent" "$http_x_forwarded_for"';
- #access_log logs/access.log main;
- sendfile on;
- #tcp_nopush on;
- keepalive_timeout 65;
- gzip on;
- server {
- listen 80;
- server_name FQDN (ex: yourhost.noip.com) ;
- rewrite ^ https://$server_name$request_uri? permanent;
- }
- server {
- listen 443;
- server_name FQDN (ex: yourhost.noip.com);
- ssl on;
- ssl_certificate server.crt;
- ssl_certificate_key server.key;
- #REDIRECT VISITORS UNLESS THEY KNOW THE EXACT URL TO VISIT
- location / { rewrite ^ http://www.someotherplace.com }
- #--------------------------- NZB SITES ----------------------------
- #SABNZBD
- location /sabnzbd {
- proxy_pass http://192.168.1.5:5555/sabnzbd;
- }
- #SICKBEARD
- location /sb { proxy_pass http://192.168.1.5:5051/sb; }
- #COUCHPOTATO
- location /cp {
- proxy_set_header Host $host;
- #proxy_set_header X-Real-IP $remote_addr;
- #proxy_set_header X-Forwarded-for $remote_addr;
- proxy_pass http://192.168.1.5:5050/cp;
- }
- #QBITTORENT / UTORRENT / OTHER WWW CAPABLE TORRENT CLIENT
- location /bt/ {
- #proxy_set_header Host $host;
- proxy_pass http://192.168.1.5:8082/;
- #proxy_redirect http://192.168.1.5:8082/images/ $scheme://$host/bt/images/;
- #proxy_redirect http://192.168.1.5:8082/theme/ $scheme://$host/bt/theme/;
- }
- #HEADPHONES
- location /hp { proxy_pass http://192.168.1.5:8181; }
- #NZBDRONE
- location /drone { proxy_pass http://192.168.1.5:8989; }
- #------------------------- END NZB SITES -------------------------
- #NGINX STATUS PAGE (OPTIONAL)
- location /nginx_status {
- stub_status on;
- access_log off;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement