775.conf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. ## Configuração para 775.partidopirata.org
  2. ## Serviços fora do ar por falta de dinheiro
  3. server {
  4. listen 80;
  5. listen [::]:80;
  6. server_name *.escolapirata.org;
  7. return 307 http://775.partidopirata.org;
  8. }
  9. server {
  10. listen 80;
  11. listen [::]:80;
  12. server_name *.escolapirata.xyz;
  13. return 307 http://775.partidopirata.org;
  14. }
  15. server {
  16. listen 80;
  17. listen [::]:80;
  18. server_name *.greve.xyz;
  19. return 307 http://775.partidopirata.org;
  20. }
  21. server {
  22. listen 80;
  23. listen [::]:80;
  24. server_name *.iikb.org;
  25. return 307 http://775.partidopirata.org;
  26. }
  27. server {
  28. listen 80;
  29. listen [::]:80;
  30. server_name *.iikb.xyz;
  31. return 307 http://775.partidopirata.org;
  32. }
  33. server {
  34. listen 80;
  35. listen [::]:80;
  36. server_name *.lapirata.org;
  37. return 307 http://775.partidopirata.org;
  38. }
  39. server {
  40. listen 80;
  41. listen [::]:80;
  42. server_name *.lapirata.xyz;
  43. return 307 http://775.partidopirata.org;
  44. }
  45. server {
  46. listen 80;
  47. listen [::]:80;
  48. server_name *.midiapirata.xyz;
  49. return 307 http://775.partidopirata.org;
  50. }
  51. server {
  52. listen 80;
  53. listen [::]:80;
  54. server_name *.movimentopirata.com.br;
  55. return 307 http://775.partidopirata.org;
  56. }
  57. server {
  58. listen 80;
  59. listen [::]:80;
  60. server_name *.movimentopirata.net.br;
  61. return 307 http://775.partidopirata.org;
  62. }
  63. server {
  64. listen 80;
  65. listen [::]:80;
  66. server_name *.movimentopirata.org;
  67. return 307 http://775.partidopirata.org;
  68. }
  69. server {
  70. listen 80;
  71. listen [::]:80;
  72. server_name *.movimentopirata.xyz;
  73. return 307 http://775.partidopirata.org;
  74. }
  75. server {
  76. listen 80;
  77. listen [::]:80;
  78. server_name *.partidopirata.com.br;
  79. return 307 http://775.partidopirata.org;
  80. }
  81. server {
  82. listen 80;
  83. listen [::]:80;
  84. server_name *.partidopirata.net.br;
  85. return 307 http://775.partidopirata.org;
  86. }
  87. server {
  88. listen 80;
  89. listen [::]:80;
  90. server_name *.partidopirata.xyz;
  91. return 307 http://775.partidopirata.org;
  92. }
  93. server {
  94. listen 80;
  95. listen [::]:80;
  96. server_name *.pirata.xyz;
  97. return 307 http://775.partidopirata.org;
  98. }
  99. server {
  100. listen 80;
  101. listen [::]:80;
  102. server_name *.piratas.xyz;
  103. return 307 http://775.partidopirata.org;
  104. }
  105. server {
  106. listen 80;
  107. listen [::]:80;
  108. server_name *.usem.xyz;
  109. return 307 http://775.partidopirata.org;
  110. }
  111. server {
  112. listen 80;
  113. listen [::]:80;
  114. server_name 775.partidopirata.org;
  115. return 301 https://775.partidopirata.org$request_uri;
  116. }
  117. server {
  118. listen 80;
  119. listen [::]:80;
  120. server_name *.775.partidopirata.org;
  121. return 301 http://775.partidopirata.org$request_uri;
  122. }
  123. ## SSL
  124. server {
  125. listen 443 ssl;
  126. listen [::]:443 ssl;
  127. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  128. ssl_prefer_server_ciphers on;
  129. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  130. ssl_ecdh_curve secp384r1;
  131. ssl_session_cache shared:SSL:10m;
  132. ssl_session_tickets off;
  133. ssl_stapling on;
  134. ssl_stapling_verify on;
  135. resolver 208.67.220.220 208.67.222.222 valid=300s;
  136. resolver_timeout 5s;
  137. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  138. add_header X-Frame-Options SAMEORIGIN;
  139. add_header X-Content-Type-Options nosniff;
  140. ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  141. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  142. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
  143. server_name 775.partidopirata.org;
  144. root /var/www/git/775/;
  145. }