Advertisement
lordjynx

nginx config

Apr 6th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. worker_processes 1;
  2.  
  3. error_log logs/error.log;
  4. error_log logs/error.log notice;
  5. error_log logs/error.log info;
  6.  
  7. events { worker_connections 1024; }
  8.  
  9.  
  10. http {
  11. include mime.types;
  12. #include ssl.conf;
  13. default_type application/octet-stream;
  14.  
  15. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  16. # '$status $body_bytes_sent "$http_referer" '
  17. # '"$http_user_agent" "$http_x_forwarded_for"';
  18. #access_log logs/access.log main;
  19.  
  20. sendfile on;
  21. #tcp_nopush on;
  22.  
  23. keepalive_timeout 65;
  24.  
  25. gzip on;
  26.  
  27.  
  28. server {
  29. listen 80;
  30. server_name FQDN (ex: yourhost.noip.com) ;
  31. rewrite ^ https://$server_name$request_uri? permanent;
  32. }
  33.  
  34. server {
  35. listen 443;
  36. server_name FQDN (ex: yourhost.noip.com);
  37. ssl on;
  38. ssl_certificate server.crt;
  39. ssl_certificate_key server.key;
  40. #REDIRECT VISITORS UNLESS THEY KNOW THE EXACT URL TO VISIT
  41. location / { rewrite ^ http://www.someotherplace.com }
  42.  
  43. #--------------------------- NZB SITES ----------------------------
  44.  
  45. #SABNZBD
  46. location /sabnzbd {
  47. proxy_pass http://192.168.1.5:5555/sabnzbd;
  48. }
  49.  
  50. #SICKBEARD
  51. location /sb { proxy_pass http://192.168.1.5:5051/sb; }
  52.  
  53. #COUCHPOTATO
  54. location /cp {
  55. proxy_set_header Host $host;
  56. #proxy_set_header X-Real-IP $remote_addr;
  57. #proxy_set_header X-Forwarded-for $remote_addr;
  58. proxy_pass http://192.168.1.5:5050/cp;
  59. }
  60.  
  61. #QBITTORENT / UTORRENT / OTHER WWW CAPABLE TORRENT CLIENT
  62. location /bt/ {
  63. #proxy_set_header Host $host;
  64. proxy_pass http://192.168.1.5:8082/;
  65. #proxy_redirect http://192.168.1.5:8082/images/ $scheme://$host/bt/images/;
  66. #proxy_redirect http://192.168.1.5:8082/theme/ $scheme://$host/bt/theme/;
  67. }
  68.  
  69. #HEADPHONES
  70. location /hp { proxy_pass http://192.168.1.5:8181; }
  71.  
  72. #NZBDRONE
  73. location /drone { proxy_pass http://192.168.1.5:8989; }
  74.  
  75. #------------------------- END NZB SITES -------------------------
  76.  
  77. #NGINX STATUS PAGE (OPTIONAL)
  78. location /nginx_status {
  79. stub_status on;
  80. access_log off;
  81. }
  82. }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement