btorrent.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ## Configuração para btorrent.partidopirata.org
  2. server {
  3. listen 80;
  4. listen [::]:80;
  5. server_name btorrent.partidopirata.org;
  6. return 301 https://btorrent.partidopirata.org$request_uri;
  7. }
  8. ## SSL
  9. server {
  10. listen 443 ssl;
  11. listen [::]:443 ssl;
  12. server_name btorrent.partidopirata.org;
  13. index index.html;
  14. # Use large keepalive timeout for faster subsequent connections
  15. keepalive_timeout 150;
  16. # SSL configuration
  17. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  18. ssl_prefer_server_ciphers on;
  19. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  20. ssl_ecdh_curve secp384r1;
  21. ssl_session_cache shared:SSL:10m;
  22. ssl_session_tickets off;
  23. ssl_stapling on;
  24. ssl_stapling_verify on;
  25. resolver 208.67.220.220 208.67.222.222 valid=300s;
  26. resolver_timeout 5s;
  27. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  28. add_header X-Frame-Options SAMEORIGIN;
  29. add_header X-Content-Type-Options nosniff;
  30. ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  31. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  32. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
  33. # Allow file uploads
  34. client_max_body_size 1200M;
  35. root /var/www/git/BTorrent/;
  36. location / {
  37. try_files $uri$args $uri$args/ /index.html;
  38. }
  39. }
  40. ## Tor
  41. server {
  42. listen 127.0.0.1:42906;
  43. allow 127.0.0.1;
  44. deny all;
  45. server_name btweb36l5cxqtcg4.onion;
  46. index index.html;
  47. # Use large keepalive timeout for faster subsequent connections
  48. keepalive_timeout 150;
  49. # Allow file uploads
  50. client_max_body_size 1200M;
  51. root /var/www/git/BTorrent/;
  52. location / {
  53. try_files $uri$args $uri$args/ /index.html;
  54. }
  55. }