Advertisement
ex_rat

rutorrent.conf FULL

Mar 21st, 2015
1,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. # rutorrent.conf script full
  2.  
  3. server {
  4. listen 80 default_server;
  5. listen 443 default_server ssl;
  6. server_name _;
  7.  
  8. index index.html index.php;
  9. charset utf-8;
  10. client_max_body_size 10M;
  11.  
  12. ssl_certificate /etc/nginx/ssl/server.crt;
  13. ssl_certificate_key /etc/nginx/ssl/server.key;
  14.  
  15. include /etc/nginx/conf.d/ciphers.conf;
  16.  
  17. access_log /var/log/nginx/rutorrent-access.log combined;
  18. error_log /var/log/nginx/rutorrent-error.log error;
  19.  
  20. error_page 500 502 503 504 /50x.html;
  21. location = /50x.html { root /usr/share/nginx/html; }
  22.  
  23. auth_basic "seedbox";
  24. auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
  25.  
  26. location = /favicon.ico {
  27. access_log off;
  28. log_not_found off;
  29. }
  30.  
  31. ## début config accueil serveur ##
  32.  
  33. location ^~ / {
  34. root /var/www/base;
  35. include /etc/nginx/conf.d/php.conf;
  36. include /etc/nginx/conf.d/cache.conf;
  37. satisfy any;
  38. allow all;
  39. }
  40.  
  41. ## fin config accueil serveur ##
  42.  
  43. ## début config proxy ##
  44.  
  45. location ^~ /proxy {
  46. root /var/www;
  47. include /etc/nginx/conf.d/php.conf;
  48. include /etc/nginx/conf.d/cache.conf;
  49. }
  50.  
  51. ## fin config proxy ##
  52.  
  53. ## début config rutorrent ##
  54.  
  55. location ^~ /rutorrent {
  56. root /var/www;
  57. include /etc/nginx/conf.d/php.conf;
  58. include /etc/nginx/conf.d/cache.conf;
  59.  
  60. location ~ /\.svn {
  61. deny all;
  62. }
  63.  
  64. location ~ /\.ht {
  65. deny all;
  66. }
  67. }
  68.  
  69. location ^~ /rutorrent/conf/ {
  70. deny all;
  71. }
  72.  
  73. location ^~ /rutorrent/share/ {
  74. deny all;
  75. }
  76.  
  77. ## fin config rutorrent ##
  78.  
  79. ## début config munin ##
  80.  
  81. location ^~ /graph {
  82. root /var/www;
  83. include /etc/nginx/conf.d/php.conf;
  84. include /etc/nginx/conf.d/cache.conf;
  85. }
  86.  
  87. location ^~ /graph/img {
  88. root /var/www;
  89. include /etc/nginx/conf.d/php.conf;
  90. include /etc/nginx/conf.d/cache.conf;
  91. error_log /dev/null crit;
  92. }
  93.  
  94. location ^~ /monitoring {
  95. root /var/www;
  96. include /etc/nginx/conf.d/php.conf;
  97. include /etc/nginx/conf.d/cache.conf;
  98. }
  99.  
  100. ## fin config munin ##
  101.  
  102. ## début config seedbox-manager ##
  103.  
  104. location ^~ /seedbox-manager {
  105. alias /var/www/seedbox-manager/public;
  106. include /etc/nginx/conf.d/php-manager.conf;
  107. include /etc/nginx/conf.d/cache.conf;
  108. }
  109.  
  110. ## fin config seedbox-manager ##
  111.  
  112. ## config utilisateurs ##
  113.  
  114. location /EXRAT {
  115. include scgi_params;
  116. scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
  117. auth_basic "seedbox";
  118. auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_exrat";
  119. }
  120.  
  121. location /MAGICALEX {
  122. include scgi_params;
  123. scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session/username.socket
  124. auth_basic "seedbox";
  125. auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_magicalex";
  126. }
  127. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement