tesouraria.conf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ## Configuração para tesouraria.partidopirata.org
  2. server {
  3. listen 80;
  4. listen [::]:80;
  5. server_name tesouraria.partidopirata.org;
  6. root /var/www/www/default/;
  7. index index.php index.html index.htm;
  8. location / {
  9. proxy_set_header Host $host;
  10. proxy_set_header X-Forwarded-For $remote_addr;
  11. proxy_set_header X-Forwarded-Proto $scheme;
  12. proxy_pass http://tesouro;
  13. }
  14. location ~ /\.ht {
  15. deny all;
  16. }
  17. }
  18. server {
  19. listen 80;
  20. listen [::]:80;
  21. server_name *.tesouraria.partidopirata.org;
  22. return 301 http://tesouraria.partidopirata.org$request_uri;
  23. }
  24. ## SSL
  25. server {
  26. listen 443 ssl;
  27. listen [::]:443 ssl;
  28. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  29. ssl_prefer_server_ciphers on;
  30. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  31. ssl_ecdh_curve secp384r1;
  32. ssl_session_cache shared:SSL:10m;
  33. ssl_session_tickets off;
  34. ssl_stapling on;
  35. ssl_stapling_verify on;
  36. resolver 208.67.220.220 208.67.222.222 valid=300s;
  37. resolver_timeout 5s;
  38. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  39. add_header X-Frame-Options SAMEORIGIN;
  40. add_header X-Content-Type-Options nosniff;
  41. ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  42. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  43. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
  44. server_name tesouraria.partidopirata.org;
  45. root /var/www/www/default/;
  46. index index.php index.html index.htm;
  47. location / {
  48. proxy_set_header Host $host;
  49. proxy_set_header X-Forwarded-For $remote_addr;
  50. proxy_set_header X-Forwarded-Proto $scheme;
  51. proxy_pass http://tesouro;
  52. }
  53. location ~ /\.ht {
  54. deny all;
  55. }
  56. }
  57. ## Tor
  58. server {
  59. listen 127.0.0.1:42985;
  60. allow 127.0.0.1;
  61. deny all;
  62. add_header X-Frame-Options SAMEORIGIN;
  63. add_header X-Content-Type-Options nosniff;
  64. server_name tesu5lmwhxql2oen.onion;
  65. root /var/www/www/default/;
  66. index index.php index.html index.htm;
  67. location / {
  68. proxy_set_header Host $host;
  69. proxy_set_header X-Forwarded-For $remote_addr;
  70. proxy_set_header X-Forwarded-Proto $scheme;
  71. proxy_pass http://tesouro;
  72. }
  73. location ~ /\.ht {
  74. deny all;
  75. }
  76. }