ftp.conf 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ## Configuração para ftp.partidopirata.org
  2. server {
  3. listen 80;
  4. listen [::]:80;
  5. server_name ftp.partidopirata.org;
  6. root /home/sftponly/anon/arquivos/;
  7. location / {
  8. autoindex on;
  9. }
  10. }
  11. server {
  12. listen 80;
  13. listen [::]:80;
  14. server_name *.ftp.partidopirata.org;
  15. return 301 http://ftp.partidopirata.org$request_uri;
  16. }
  17. ## SSL
  18. server {
  19. listen 443 ssl;
  20. listen [::]:443 ssl;
  21. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  22. ssl_prefer_server_ciphers on;
  23. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  24. ssl_ecdh_curve secp384r1;
  25. ssl_session_cache shared:SSL:10m;
  26. ssl_session_tickets off;
  27. ssl_stapling on;
  28. ssl_stapling_verify on;
  29. resolver 208.67.220.220 208.67.222.222 valid=300s;
  30. resolver_timeout 5s;
  31. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  32. add_header X-Frame-Options SAMEORIGIN;
  33. add_header X-Content-Type-Options nosniff;
  34. ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  35. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  36. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
  37. server_name ftp.partidopirata.org;
  38. root /home/sftponly/anon/arquivos/;
  39. location / {
  40. autoindex on;
  41. }
  42. }
  43. ## Tor
  44. server {
  45. listen 127.0.0.1:42901;
  46. allow 127.0.0.1;
  47. deny all;
  48. add_header X-Frame-Options SAMEORIGIN;
  49. add_header X-Content-Type-Options nosniff;
  50. server_name ftp37tqcn2nwfkjk.onion;
  51. root /home/sftponly/anon/arquivos/;
  52. location / {
  53. autoindex on;
  54. }
  55. }
  56. server {
  57. listen 127.0.0.1:42905;
  58. allow 127.0.0.1;
  59. deny all;
  60. add_header X-Frame-Options SAMEORIGIN;
  61. add_header X-Content-Type-Options nosniff;
  62. server_name 2jhmnwu6yep6bdhm.onion;
  63. return 301 http://ftp37tqcn2nwfkjk.onion$request_uri;
  64. }