Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. ## Version 2018/01/29 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/default
  2.  
  3. # listening on port 80 disabled by default, remove the "#" signs to enable
  4. # redirect all traffic to https
  5. server {
  6. listen 80;
  7. server_name _;
  8. return 301 https://$host$request_uri;
  9. }
  10.  
  11. # main server block
  12. server {
  13. listen 443 ssl default_server;
  14.  
  15. root /config/www;
  16. index index.html index.htm index.php;
  17.  
  18. server_name _;
  19.  
  20. # all ssl related config moved to ssl.conf
  21. include /config/nginx/ssl.conf;
  22.  
  23. client_max_body_size 0;
  24.  
  25. location / {
  26. try_files $uri $uri/ /index.html /index.php?$args =404;
  27. }
  28.  
  29. location ~ \.php$ {
  30. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  31. # With php7-cgi alone:
  32. fastcgi_pass 127.0.0.1:9000;
  33. # With php7-fpm:
  34. #fastcgi_pass unix:/var/run/php7-fpm.sock;
  35. fastcgi_index index.php;
  36. include /etc/nginx/fastcgi_params;
  37. }
  38. location /radarr {
  39. proxy_pass http://192.168.0.7:7878;
  40. }
  41.  
  42. location /sonarr {
  43. proxy_pass http://192.168.0.6:8989;
  44. }
  45.  
  46.  
  47. # sample reverse proxy config for password protected couchpotato running at IP 192.168.1.50 port 5050 with base url "cp"
  48. # notice this is within the same server block as the base
  49. # don't forget to generate the .htpasswd file as described on docker hub
  50. # location ^~ /cp {
  51. # auth_basic "Restricted";
  52. # auth_basic_user_file /config/nginx/.htpasswd;
  53. # include /config/nginx/proxy.conf;
  54. # proxy_pass http://192.168.1.50:5050/cp;
  55. # }
  56.  
  57. }
  58.  
  59. # sample reverse proxy config without url base, but as a subdomain "cp", ip and port same as above
  60. # notice this is a new server block, you need a new server block for each subdomain
  61. #server {
  62. # listen 443 ssl;
  63. #
  64. # root /config/www;
  65. # index index.html index.htm index.php;
  66. #
  67. # server_name cp.*;
  68. #
  69. # include /config/nginx/ssl.conf;
  70. #
  71. # client_max_body_size 0;
  72. #
  73. # location / {
  74. # auth_basic "Restricted";
  75. # auth_basic_user_file /config/nginx/.htpasswd;
  76. # include /config/nginx/proxy.conf;
  77. # proxy_pass http://192.168.1.50:5050;
  78. # }
  79. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement