midia.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ## Configuração para midia.partidopirata.org
  2. server {
  3. listen 80;
  4. listen [::]:80;
  5. server_name midia.partidopirata.org;
  6. return 301 https://midia.partidopirata.org$request_uri;
  7. }
  8. server {
  9. listen 80;
  10. listen [::]:80;
  11. server_name *.midia.partidopirata.org;
  12. return 301 http://midia.partidopirata.org$request_uri;
  13. }
  14. ## SSL
  15. server {
  16. listen 443 ssl;
  17. listen [::]:443 ssl;
  18. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  19. ssl_prefer_server_ciphers on;
  20. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  21. ssl_ecdh_curve secp384r1;
  22. ssl_session_cache shared:SSL:10m;
  23. ssl_session_tickets off;
  24. ssl_stapling on;
  25. ssl_stapling_verify on;
  26. resolver 208.67.220.220 208.67.222.222 valid=300s;
  27. resolver_timeout 5s;
  28. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  29. add_header X-Frame-Options SAMEORIGIN;
  30. add_header X-Content-Type-Options nosniff;
  31. ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  32. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  33. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
  34. server_name midia.partidopirata.org;
  35. root /var/www/youtube-dl/;
  36. }
  37. ## Tor
  38. #server {
  39. # listen 127.0.0.1:42900;
  40. # allow 127.0.0.1;
  41. # deny all;
  42. #
  43. # add_header X-Frame-Options SAMEORIGIN;
  44. # add_header X-Content-Type-Options nosniff;
  45. #
  46. # server_name midia.onion;
  47. # root /var/www/youtube-dl/;
  48. #}