naofode.conf 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. ## Configuração para naofo.de
  2. server {
  3. listen 80;
  4. listen [::]:80;
  5. server_name nao.usem.xyz;
  6. root /var/www/git/nao.usem.xyz/;
  7. index index.php index.html index.htm;
  8. location / {
  9. proxy_pass http://apache2;
  10. proxy_set_header Host $host;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. proxy_set_header X-Forwarded-For $remote_addr;
  13. }
  14. location ~ /\.ht {
  15. deny all;
  16. }
  17. }
  18. server {
  19. listen 80;
  20. listen [::]:80;
  21. server_name *.nao.usem.xyz;
  22. return 302 http://nao.usem.xyz$request_uri;
  23. }
  24. server {
  25. listen 80;
  26. listen [::]:80;
  27. server_name naofode.xyz;
  28. root /var/www/git/naofode.xyz/;
  29. index index.php index.html index.htm;
  30. location / {
  31. proxy_pass http://apache2;
  32. proxy_set_header Host $host;
  33. proxy_set_header X-Real-IP $remote_addr;
  34. proxy_set_header X-Forwarded-For $remote_addr;
  35. }
  36. location ~ /\.ht {
  37. deny all;
  38. }
  39. }
  40. server {
  41. listen 80;
  42. listen [::]:80;
  43. server_name *.naofode.xyz;
  44. return 301 http://naofode.xyz$request_uri;
  45. }
  46. server {
  47. listen 80;
  48. listen [::]:80;
  49. server_name nfde.xyz;
  50. root /var/www/git/nfde.xyz/;
  51. index index.php index.html index.htm;
  52. location / {
  53. proxy_pass http://apache2;
  54. proxy_set_header Host $host;
  55. proxy_set_header X-Real-IP $remote_addr;
  56. proxy_set_header X-Forwarded-For $remote_addr;
  57. }
  58. location ~ /\.ht {
  59. deny all;
  60. }
  61. }
  62. server {
  63. listen 80;
  64. listen [::]:80;
  65. server_name naofode.partidopirata.org;
  66. root /var/www/git/nao.usem.xyz/;
  67. index index.php index.html index.htm;
  68. location / {
  69. proxy_pass http://apache2;
  70. # proxy_pass http://naofode;
  71. proxy_set_header Host $host;
  72. proxy_set_header X-Real-IP $remote_addr;
  73. proxy_set_header X-Forwarded-For $remote_addr;
  74. }
  75. location ~ /\.ht {
  76. deny all;
  77. }
  78. }
  79. server {
  80. listen 80;
  81. listen [::]:80;
  82. server_name *.nfde.xyz;
  83. return 301 http://nfde.xyz$request_uri;
  84. }
  85. server {
  86. listen 80;
  87. listen [::]:80;
  88. server_name naofo.de;
  89. return 307 http://naofode.partidopirata.org$request_uri;
  90. }
  91. server {
  92. listen 80;
  93. listen [::]:80;
  94. server_name *.naofo.de;
  95. return 301 http://naofo.de$request_uri;
  96. }
  97. server {
  98. listen 80;
  99. listen [::]:80;
  100. server_name nfde.tk;
  101. return 307 http://naofode.partidopirata.org$request_uri;
  102. }
  103. server {
  104. listen 80;
  105. listen [::]:80;
  106. server_name *.nfde.tk;
  107. return 301 http://nfde.tk$request_uri;
  108. }
  109. ## SSL
  110. #server {
  111. # listen 443 ssl;
  112. # listen [::]:443 ssl;
  113. # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  114. # ssl_prefer_server_ciphers on;
  115. # ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  116. # ssl_ecdh_curve secp384r1;
  117. # ssl_session_cache shared:SSL:10m;
  118. # ssl_session_tickets off;
  119. # ssl_stapling on;
  120. # ssl_stapling_verify on;
  121. # resolver 208.67.220.220 208.67.222.222 valid=300s;
  122. # resolver_timeout 5s;
  123. # add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  124. # add_header X-Frame-Options SAMEORIGIN;
  125. # add_header X-Content-Type-Options nosniff;
  126. # ssl_certificate /etc/letsencrypt/live/nao.usem.xyz/fullchain.pem;
  127. # ssl_certificate_key /etc/letsencrypt/live/nao.usem.xyz/privkey.pem;
  128. # ssl_trusted_certificate /etc/letsencrypt/live/nao.usem.xyz/chain.pem;
  129. #
  130. # server_name nao.usem.xyz;
  131. # root /var/www/git/nao.usem.xyz/;
  132. # index index.php index.html index.htm;
  133. # location / {
  134. # proxy_pass https://apache4;
  135. # proxy_set_header Host $host;
  136. # proxy_set_header X-Real-IP $remote_addr;
  137. # proxy_set_header X-Forwarded-For $remote_addr;
  138. # }
  139. # location ~ /\.ht {
  140. # deny all;
  141. # }
  142. # }
  143. # server {
  144. # listen 443 ssl;
  145. # listen [::]:443 ssl;
  146. # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  147. # ssl_prefer_server_ciphers on;
  148. # ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  149. # ssl_ecdh_curve secp384r1;
  150. # ssl_session_cache shared:SSL:10m;
  151. # ssl_session_tickets off;
  152. # ssl_stapling on;
  153. # ssl_stapling_verify on;
  154. # resolver 208.67.220.220 208.67.222.222 valid=300s;
  155. # resolver_timeout 5s;
  156. # add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  157. # add_header X-Frame-Options SAMEORIGIN;
  158. # add_header X-Content-Type-Options nosniff;
  159. # ssl_certificate /etc/letsencrypt/live/naofode.xyz/fullchain.pem;
  160. # ssl_certificate_key /etc/letsencrypt/live/naofode.xyz/privkey.pem;
  161. # ssl_trusted_certificate /etc/letsencrypt/live/naofode.xyz/chain.pem;
  162. #
  163. # server_name naofode.xyz;
  164. # root /var/www/git/naofode.xyz/;
  165. # index index.php index.html index.htm;
  166. # location / {
  167. # proxy_pass https://apache4;
  168. # proxy_set_header Host $host;
  169. # proxy_set_header X-Real-IP $remote_addr;
  170. # proxy_set_header X-Forwarded-For $remote_addr;
  171. # }
  172. # location ~ /\.ht {
  173. # deny all;
  174. # }
  175. # }
  176. # server {
  177. # listen 443 ssl;
  178. # listen [::]:443 ssl;
  179. # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  180. # ssl_prefer_server_ciphers on;
  181. # ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  182. # ssl_ecdh_curve secp384r1;
  183. # ssl_session_cache shared:SSL:10m;
  184. # ssl_session_tickets off;
  185. # ssl_stapling on;
  186. # ssl_stapling_verify on;
  187. # resolver 208.67.220.220 208.67.222.222 valid=300s;
  188. # resolver_timeout 5s;
  189. # add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  190. # add_header X-Frame-Options SAMEORIGIN;
  191. # add_header X-Content-Type-Options nosniff;
  192. # ssl_certificate /etc/letsencrypt/live/nfde.xyz/fullchain.pem;
  193. # ssl_certificate_key /etc/letsencrypt/live/nfde.xyz/privkey.pem;
  194. # ssl_trusted_certificate /etc/letsencrypt/live/nfde.xyz/chain.pem;
  195. #
  196. # server_name nfde.xyz;
  197. # root /var/www/git/nfde.xyz/;
  198. # index index.php index.html index.htm;
  199. # location / {
  200. # proxy_pass https://apache4;
  201. # proxy_set_header Host $host;
  202. # proxy_set_header X-Real-IP $remote_addr;
  203. # proxy_set_header X-Forwarded-For $remote_addr;
  204. # }
  205. # location ~ /\.ht {
  206. # deny all;
  207. # }
  208. # }
  209. server {
  210. listen 443 ssl;
  211. listen [::]:443 ssl;
  212. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  213. ssl_prefer_server_ciphers on;
  214. ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
  215. ssl_ecdh_curve secp384r1;
  216. ssl_session_cache shared:SSL:10m;
  217. ssl_session_tickets off;
  218. ssl_stapling on;
  219. ssl_stapling_verify on;
  220. resolver 208.67.220.220 208.67.222.222 valid=300s;
  221. resolver_timeout 5s;
  222. add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
  223. add_header X-Frame-Options SAMEORIGIN;
  224. add_header X-Content-Type-Options nosniff;
  225. ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
  226. ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
  227. ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
  228. server_name naofode.partidopirata.org;
  229. root /var/www/git/nao.usem.xyz/;
  230. index index.php index.html index.htm;
  231. location / {
  232. proxy_pass http://apache2;
  233. proxy_set_header Host $host;
  234. proxy_set_header X-Real-IP $remote_addr;
  235. proxy_set_header X-Forwarded-For $remote_addr;
  236. }
  237. location ~ /\.ht {
  238. deny all;
  239. }
  240. }