Advertisement
Guest User

Untitled

a guest
Jun 5th, 2018
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. ################################################################################################################
  2. #////////////////////////////////////////////////SERVER BLOCK\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
  3. ################################################################################################################
  4.  
  5. # REDIRECT TRAFFIC FROM www.[mysubdomain].duckdns.org TO https://[mysubdomain].duckdns.org
  6. server {
  7. listen 80;
  8. listen 443 ssl http2;
  9. server_name www.[mysubdomain].duckdns.org; #CHANGE THIS TO YOUR DOMAIN NAME!
  10. return 301 https://[mysubdomain].duckdns.org$request_uri; #CHANGE THIS TO YOUR DOMAIN NAME!
  11. }
  12.  
  13.  
  14. ################################################################################################################
  15. #////////////////////////////////////////////////MAIN SERVER BLOCK\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
  16. ################################################################################################################
  17.  
  18. # MAIN SERVER BLOCK
  19. server {
  20. listen 443 ssl http2 default_server;
  21. server_name [mysubdomain].duckdns.org; #CHANGE THIS TO YOUR DOMAIN NAME!
  22.  
  23. ## Certificates from LE container placement
  24. ssl_certificate /config/keys/letsencrypt/fullchain.pem;
  25. ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
  26.  
  27. ## Strong Security recommended settings per cipherli.st
  28. ssl_dhparam /config/nginx/dhparams.pem; # Bit value: 4096
  29. ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;
  30. ssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0
  31. ssl_session_timeout 10m;
  32.  
  33.  
  34. #AUTHORIZATION BLOCK
  35. location ~ /auth-(.*) {
  36. internal;
  37. proxy_pass http://192.168.1.146:8282/api/?v1/auth&group=$1;
  38. proxy_set_header Content-Length "";
  39. }
  40.  
  41.  
  42. ################################################################################################################
  43. #////////////////////////////////////////////////SUBDIRECTORIES\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\#
  44. ################################################################################################################
  45.  
  46.  
  47. #RADARR CONTAINER
  48. location /radarr {
  49. auth_request /auth-0;
  50. proxy_pass http://192.168.1.146:7878/radarr;
  51. include /config/nginx/proxy.conf;
  52. }
  53.  
  54. # RADARR ALLOW API FOR MOBILE APPS
  55. #location /radarr/api {
  56. #proxy_pass http://192.168.1.146:7878/radarr/api;
  57. #include /config/nginx/proxy.conf;
  58. #}
  59.  
  60. #SONARR CONTAINER
  61. location /sonarr {
  62. auth_request /auth-0;
  63. proxy_pass http://192.168.1.146:8989/sonarr;
  64. include /config/nginx/proxy.conf;
  65. }
  66.  
  67. # SONARR ALLOW API FOR MOBILE APPS
  68. #location /sonarr/api {
  69. #auth_request /auth-0;
  70. #proxy_pass http://192.168.1.146:8989/sonarr/api;
  71. #include /config/nginx/proxy.conf;
  72. #}
  73.  
  74. # DELUGE CONTAINER
  75. location /deluge {
  76. auth_request /auth-0;
  77. proxy_pass http://192.168.1.146:8113/;
  78. proxy_set_header X-Deluge-Base "/deluge/";
  79. include /config/nginx/proxy.conf;
  80. add_header X-Frame-Options SAMEORIGIN;
  81. }
  82.  
  83. #NETDATA 301 REDIRECT
  84. location /netdata {
  85. return 301 /netdata/;
  86. }
  87.  
  88. #NETDATA CONTAINER
  89. location ~ /netdata/(?<ndpath>.*) {
  90. auth_request /auth-4;
  91. proxy_set_header X-Forwarded-Host $host;
  92. proxy_set_header X-Forwarded-Server $host;
  93. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  94. proxy_pass http://192.168.1.146:19999/$ndpath$is_args$args;
  95. proxy_http_version 1.1;
  96. proxy_pass_request_headers on;
  97. proxy_set_header Connection “keep-alive”;
  98. proxy_store off;
  99. }
  100.  
  101. #OMBI CONTAINER
  102. location /ombi {
  103. auth_request /auth-4;
  104. proxy_pass http://192.168.1.146:3579/ombi;
  105. include /config/nginx/proxy.conf;
  106. }
  107.  
  108.  
  109. # enable subdomain method reverse proxy confs
  110. include /config/nginx/proxy-confs/*.subdomain.conf;
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement