Guest User

Untitled

a guest
Apr 24th, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.79 KB | None | 0 0
  1.  
  2. #user nobody;
  3. worker_processes 1;
  4.  
  5. #error_log logs/error.log;
  6. #error_log logs/error.log notice;
  7. #error_log logs/error.log info;
  8.  
  9. #pid logs/nginx.pid;
  10.  
  11.  
  12. events {
  13. worker_connections 1024;
  14. }
  15.  
  16.  
  17. http {
  18. include mime.types;
  19. default_type application/octet-stream;
  20.  
  21. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  22. # '$status $body_bytes_sent "$http_referer" '
  23. # '"$http_user_agent" "$http_x_forwarded_for"';
  24.  
  25. #access_log logs/access.log main;
  26.  
  27. sendfile on;
  28. #tcp_nopush on;
  29.  
  30. #keepalive_timeout 0;
  31. keepalive_timeout 65;
  32.  
  33. #gzip on;
  34.  
  35. server {
  36. listen 80;
  37. server_name hostname hostname.xx;
  38.  
  39. #charset koi8-r;
  40.  
  41. #access_log logs/host.access.log main;
  42.  
  43. #error_page 404 /404.html;
  44.  
  45. # redirect server error pages to the static page /50x.html
  46. #
  47. #error_page 500 502 503 504 /50x.html;
  48. #location = /50x.html {
  49. #root html;
  50. #}
  51.  
  52. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  53. #
  54. #location ~ \.php$ {
  55. # proxy_pass http://127.0.0.1;
  56. #}
  57.  
  58. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  59. #
  60. location ~ \.php$ {
  61. root c:/nginx/html;
  62. fastcgi_pass 127.0.0.1:9000;
  63. fastcgi_index index.php;
  64. #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  65. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  66. include fastcgi_params;
  67. }
  68.  
  69. # deny access to .htaccess files, if Apache's document root
  70. # concurs with nginx's one
  71. #
  72. #location ~ /\.ht {
  73. # deny all;
  74. #}
  75. }
  76.  
  77.  
  78.  
  79. # another virtual host using mix of IP-, name-, and port-based configuration
  80. #
  81. #server {
  82. # listen 8000;
  83. # listen somename:8080;
  84. # server_name somename alias another.alias;
  85.  
  86. # location / {
  87. # root html;
  88. # index index.html index.htm;
  89. # }
  90. #}
  91.  
  92.  
  93.  
  94. # HTTPS server
  95. #
  96. server {
  97. listen 443 ssl;
  98. server_name hostname hostname.xx;
  99.  
  100. location /organizr {
  101. root c:/nginx/html;
  102. index index.php index.html index.htm;
  103. }
  104.  
  105. location /muximux {
  106. root c:/nginx/html;
  107. index index.php index.html index.htm;
  108.  
  109. auth_basic "Private Property";
  110. auth_basic_user_file c:/nginx/htaccess/htpasswd;
  111. }
  112.  
  113. location ~ ^/nzbget$ {
  114. return 302 $scheme://$host$request_uri/;
  115. }
  116. location ~ ^/nzbget($|./*) {
  117. rewrite /nzbget/(.*) /$1 break;
  118. proxy_pass http://127.0.0.1:6789;
  119. proxy_set_header Host $host;
  120. proxy_set_header X-Real-IP $remote_addr;
  121. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  122. }
  123.  
  124. location /sonarr {
  125. proxy_pass http://127.0.0.1:8989;
  126. proxy_set_header Host $host;
  127. proxy_set_header X-Real-IP $remote_addr;
  128. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  129. }
  130.  
  131. location /couchpotato {
  132. proxy_pass http://127.0.0.1:5050;
  133. proxy_set_header Host $host;
  134. proxy_set_header X-Real-IP $remote_addr;
  135. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  136. }
  137.  
  138. location /headphones {
  139. proxy_pass https://127.0.0.1:8181;
  140. proxy_set_header Host $host;
  141. proxy_set_header X-Real-IP $remote_addr;
  142. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  143. }
  144.  
  145. location /mylar {
  146. proxy_pass https://127.0.0.1:8090;
  147. proxy_set_header Host $host;
  148. proxy_set_header X-Real-IP $remote_addr;
  149. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  150. }
  151.  
  152. location /nzbhydra/ {
  153. proxy_pass http://127.0.0.1:5075/nzbhydra/;
  154. #X-Forwarded-For is used for forwarding IP addresses
  155. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  156. }
  157.  
  158. location ~ ^/jackett$ {
  159. return 302 $scheme://$host$request_uri/;
  160. }
  161. location ~ ^/jackett($|./*) {
  162. rewrite /jackett/(.*) /$1 break;
  163. proxy_pass http://127.0.0.1:9117;
  164. proxy_set_header Host $host;
  165. proxy_set_header X-Real-IP $remote_addr;
  166. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  167. }
  168.  
  169. location /autosub/ {
  170. proxy_pass http://127.0.0.1:8083/autosub/;
  171. #X-Forwarded-For is used for forwarding IP addresses
  172. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  173. }
  174.  
  175.  
  176. ssl_certificate c:/nginx/ssl/domain.crt;
  177. ssl_certificate_key c:/nginx/ssl/domain.key;
  178.  
  179. ssl_session_cache shared:SSL:1m;
  180. ssl_session_timeout 5m;
  181.  
  182. ssl_ciphers HIGH:!aNULL:!MD5;
  183. ssl_prefer_server_ciphers on;
  184.  
  185. location ~ \.php$ {
  186. root c:/nginx/html;
  187. fastcgi_pass 127.0.0.1:9000;
  188. fastcgi_index index.php;
  189. #fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  190. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  191. include fastcgi_params;
  192. }
  193. }
  194.  
  195. server {
  196. listen 443 ssl;
  197. server_name qbittorrent.hostname.xx;
  198.  
  199. location / {
  200. proxy_pass http://127.0.0.1:7110;
  201. proxy_set_header Host $host;
  202. proxy_set_header X-Real-IP $remote_addr;
  203. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  204. }
  205.  
  206. ssl_certificate c:/nginx/ssl/wildcard.crt;
  207. ssl_certificate_key c:/nginx/ssl/wildcard.key;
  208.  
  209. ssl_session_cache shared:SSL:1m;
  210. ssl_session_timeout 5m;
  211.  
  212. ssl_ciphers HIGH:!aNULL:!MD5;
  213. ssl_prefer_server_ciphers on;
  214. }
  215.  
  216. }
Advertisement
Add Comment
Please, Sign In to add comment