btorrent.conf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/fullchain.pem;
  31. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org/privkey.pem;
  32. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org/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. proxy_pass http://entwickler;
  39. proxy_set_header Host $host;
  40. proxy_set_header X-Forwarded-For $remote_addr;
  41. proxy_set_header X-Forwarded-Proto $scheme;
  42. }
  43. }
  44. ## Tor
  45. #server {
  46. # listen 127.0.0.1:42906;
  47. # allow 127.0.0.1;
  48. # deny all;
  49. #
  50. # server_name btweb36l5cxqtcg4.onion;
  51. # index index.html;
  52. #
  53. # # Use large keepalive timeout for faster subsequent connections
  54. # keepalive_timeout 150;
  55. #
  56. # # Allow file uploads
  57. # client_max_body_size 1200M;
  58. #
  59. # root /var/www/git/BTorrent/;
  60. #
  61. # location / {
  62. # try_files $uri$args $uri$args/ /index.html;
  63. # }
  64. #}