Advertisement
ex_rat

rutorrent.conf LIGHT

Mar 21st, 2015
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. # rutorrent.conf script light
  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 rutorrent ##
  44.  
  45. location ^~ /rutorrent {
  46. root /var/www;
  47. include /etc/nginx/conf.d/php.conf;
  48. include /etc/nginx/conf.d/cache.conf;
  49.  
  50. location ~ /\.svn {
  51. deny all;
  52. }
  53.  
  54. location ~ /\.ht {
  55. deny all;
  56. }
  57. }
  58.  
  59. location ^~ /rutorrent/conf/ {
  60. deny all;
  61. }
  62.  
  63. location ^~ /rutorrent/share/ {
  64. deny all;
  65. }
  66.  
  67. ## fin config rutorrent ##
  68.  
  69. ## début config seedbox-manager (si demandé à l'install) ##
  70.  
  71. location ^~ /seedbox-manager {
  72. alias /var/www/seedbox-manager/public;
  73. include /etc/nginx/conf.d/php-manager.conf;
  74. include /etc/nginx/conf.d/cache.conf;
  75. }
  76.  
  77. ## fin config seedbox-manager ##
  78.  
  79. location /EXRAT {
  80. include scgi_params;
  81. scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
  82. auth_basic "seedbox";
  83. auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_exrat";
  84. }
  85.  
  86. location /MAGICALEX {
  87. include scgi_params;
  88. scgi_pass 127.0.0.1:5003; #ou socket : unix:/home/username/.session/username.socket
  89. auth_basic "seedbox";
  90. auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_magicalex";
  91. }
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement