iuf.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ## Configuração para iuf.partidopirata.org
  2. server {
  3. listen 80;
  4. listen [::]:80;
  5. server_name iuf.partidopirata.org;
  6. root /var/www/git/desgovernanca-site/;
  7. }
  8. server {
  9. listen 80;
  10. listen [::]:80;
  11. server_name *.iuf.partidopirata.org;
  12. return 301 http://iuf.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 iuf.partidopirata.org;
  35. root /var/www/git/desgovernanca-site/;
  36. }
  37. ## Tor
  38. server {
  39. listen 127.0.0.1:42907;
  40. allow 127.0.0.1;
  41. deny all;
  42. add_header X-Frame-Options SAMEORIGIN;
  43. add_header X-Content-Type-Options nosniff;
  44. server_name iufywjvpmxty53fy.onion;
  45. root /var/www/git/desgovernanca-site/;
  46. }
  47. server {
  48. listen 127.0.0.1:42904;
  49. allow 127.0.0.1;
  50. deny all;
  51. add_header X-Frame-Options SAMEORIGIN;
  52. add_header X-Content-Type-Options nosniff;
  53. server_name v27tzey35klcfrpw.onion;
  54. return 301 http://iufywjvpmxty53fy.onion$request_uri;
  55. }