781.conf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ## Configuração para 775.partidopirata.org
  2. ## Serviços fora do ar por falta de organização
  3. server {
  4. listen 80;
  5. listen [::]:80;
  6. server_name 781.partidopirata.org;
  7. return 301 https://781.partidopirata.org$request_uri;
  8. }
  9. server {
  10. listen 80;
  11. listen [::]:80;
  12. server_name *.781.partidopirata.org;
  13. return 301 http://781.partidopirata.org$request_uri;
  14. }
  15. ## SSL
  16. server {
  17. listen 443 ssl;
  18. listen [::]:443 ssl;
  19. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  20. ssl_prefer_server_ciphers on;
  21. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  22. ssl_ecdh_curve secp384r1;
  23. ssl_session_cache shared:SSL:10m;
  24. ssl_session_tickets off;
  25. ssl_stapling on;
  26. ssl_stapling_verify on;
  27. resolver 208.67.220.220 208.67.222.222 valid=300s;
  28. resolver_timeout 5s;
  29. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  30. add_header X-Frame-Options SAMEORIGIN;
  31. add_header X-Content-Type-Options nosniff;
  32. ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  33. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  34. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
  35. server_name 781.partidopirata.org;
  36. root /var/www/git/migracao-site/;
  37. }