Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. server {
  2. listen 443 default_server ssl http2;
  3. server_name domaine1.com www.domaine1.com;
  4. ssl_certificate /etc/letsencrypt/live/domaine1.com/fullchain.pem;
  5. ssl_certificate_key /etc/letsencrypt/live/domaine1.com/privkey.pem;
  6.  
  7. index index.html index.php;
  8. charset utf-8;
  9. client_max_body_size 10M;
  10.  
  11. include /etc/nginx/conf.d/ciphers.conf;
  12.  
  13. access_log /var/log/nginx/rutorrent-access.log combined;
  14. error_log /var/log/nginx/rutorrent-error.log error;
  15.  
  16. error_page 500 502 503 504 /50x.html;
  17.  
  18. auth_basic "seedbox";
  19. auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
  20.  
  21. root /var/www;
  22.  
  23. location = /favicon.ico {
  24. access_log off;
  25. log_not_found off;
  26. }
  27.  
  28. location = /50x.html {
  29. root /usr/share/nginx/html;
  30. }
  31.  
  32. location ~ \.php$ {
  33. fastcgi_index index.php;
  34. include /etc/nginx/fastcgi_params;
  35. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  36. fastcgi_pass unix:/var/run/php5-fpm.sock;
  37. }
  38.  
  39. location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
  40. expires 30d;
  41. access_log off;
  42. }
  43.  
  44. location ~* \.(eot|ttf|woff|svg)$ {
  45. add_header Acccess-Control-Allow-Origin *;
  46. }
  47.  
  48. ## Config accueil serveur ##
  49.  
  50. location ^~ / {
  51. root /var/www/base;
  52. include /etc/nginx/conf.d/php.conf;
  53. include /etc/nginx/conf.d/cache.conf;
  54. satisfy any;
  55. allow all;
  56. }
  57.  
  58. ## Config rutorrent ##
  59.  
  60. location /rutorrent {
  61. try_files $uri $uri/ /index.html;
  62. }
  63.  
  64. location ~ ^/rutorrent/(conf|share)/(.+)$ {
  65. deny all;
  66. }
  67.  
  68. ## Config munin ##
  69.  
  70. location /graph {
  71. }
  72.  
  73. location /graph/img {
  74. error_log /dev/null crit;
  75. }
  76.  
  77. location /monitoring {
  78. auth_basic "Monitoring";
  79. auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_torrent";
  80. }
  81.  
  82. location ^~ /nginx_status {
  83.  
  84. stub_status on;
  85. access_log off;
  86. satisfy any;
  87. allow 127.0.0.1;
  88. deny all;
  89. }
  90.  
  91. ## Config seedbox-manager ##
  92.  
  93. location /seedbox-manager {
  94. try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
  95. }
  96.  
  97. ## Config utilisateurs ##
  98.  
  99. location /TORRENT {
  100. include scgi_params;
  101. scgi_pass 127.0.0.1:5001;
  102. auth_basic "seedbox";
  103. auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_torrent";
  104. }
  105. location ~ /.well-known {
  106. allow all;
  107. }
  108. }
  109. server {
  110. listen 80;
  111. server_name domaine1.com www.domaine1.com;
  112. return 301 https://$host$request_uri;
  113. }
  114.  
  115. server {
  116. listen 80;
  117. server_name static-paris-fr.domaine2.com;
  118. root /var/www/mirror;
  119. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement