loomio.conf 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ## Configuração para loomio.partidopirata.org
  2. ## TODO: Os links para o loomio argentino estão inconsistentes
  3. server {
  4. listen 80;
  5. listen [::]:80;
  6. server_name loomio.partidopirata.org;
  7. location / {
  8. return 303 https://www.loomio.org/g/Hmpbu4Tr/;
  9. }
  10. location /ar {
  11. return 303 https://consenso.partidopirata.com.ar/g/g4v9x37C/;
  12. }
  13. location /br {
  14. return 303 https://www.loomio.org/g/Hmpbu4Tr/;
  15. }
  16. }
  17. server {
  18. listen 80;
  19. listen [::]:80;
  20. server_name *.loomio.partidopirata.org;
  21. return 301 http://loomio.partidopirata.org$request_uri;
  22. }
  23. server {
  24. listen 80;
  25. listen [::]:80;
  26. server_name ar.loomio.partidopirata.org;
  27. return 301 http://loomio.partidopirata.org/ar;
  28. }
  29. server {
  30. listen 80;
  31. listen [::]:80;
  32. server_name br.loomio.partidopirata.org;
  33. return 301 http://loomio.partidopirata.org/br;
  34. }
  35. ## SSL
  36. server {
  37. listen 443 ssl;
  38. listen [::]:443 ssl;
  39. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  40. ssl_prefer_server_ciphers on;
  41. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  42. ssl_ecdh_curve secp384r1;
  43. ssl_session_cache shared:SSL:10m;
  44. ssl_session_tickets off;
  45. ssl_stapling on;
  46. ssl_stapling_verify on;
  47. resolver 208.67.220.220 208.67.222.222 valid=300s;
  48. resolver_timeout 5s;
  49. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  50. add_header X-Frame-Options SAMEORIGIN;
  51. add_header X-Content-Type-Options nosniff;
  52. ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  53. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  54. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
  55. server_name loomio.partidopirata.org;
  56. location / {
  57. return 303 https://www.loomio.org/g/Hmpbu4Tr/;
  58. }
  59. location /ar {
  60. return 303 https://consenso.partidopirata.com.ar/g/g4v9x37C/;
  61. }
  62. location /br {
  63. return 303 https://www.loomio.org/g/Hmpbu4Tr/;
  64. }
  65. }
  66. ## Tor
  67. server {
  68. listen 127.0.0.1:42916;
  69. allow 127.0.0.1;
  70. deny all;
  71. add_header X-Frame-Options SAMEORIGIN;
  72. add_header X-Content-Type-Options nosniff;
  73. server_name lomaxbahzywqmyvg.onion;
  74. location / {
  75. return 303 https://www.loomio.org/g/Hmpbu4Tr/;
  76. }
  77. location /ar {
  78. return 303 https://consenso.partidopirata.com.ar/g/g4v9x37C/;
  79. }
  80. location /br {
  81. return 303 https://www.loomio.org/g/Hmpbu4Tr/;
  82. }
  83. }