123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- ## Configuração para apoio.partidopirata.org
- ## Desenvolvimento
- server {
- listen 80;
- listen [::]:80;
- server_name apoio-dev.partidopirata.org;
- charset utf-8;
- client_max_body_size 75M;
- # Django media
- location /media {
- alias /home/crncosta/apoio.partidopirata.xyz/apoio/inc;
- }
- location /static {
- alias /home/crncosta/apoio.partidopirata.xyz/apoio/inc;
- }
- location / {
- uwsgi_pass django;
- include /home/crncosta/apoio.partidopirata.xyz/uwsgi_params;
- }
- }
- server {
- listen 80;
- listen [::]:80;
- server_name apoio-dev1.partidopirata.org;
- charset utf-8;
- client_max_body_size 75M;
- location /media {
- alias /home/jango/apoio-piratas.dev/apoio/inc;
- }
- location /static {
- alias /home/jango/apoio-piratas.dev/apoio/inc;
- }
- location / {
- uwsgi_pass apoio;
- include /home/jango/apoio-piratas.dev/uwsgi_params;
- }
- }
- server {
- listen 80;
- listen [::]:80;
- server_name apoio.partidopirata.org;
- return 301 https://apoio.partidopirata.org$request_uri;
- }
- server {
- listen 80;
- listen [::]:80;
- server_name *.apoio.partidopirata.org;
- return 301 http://apoio.partidopirata.org$request_uri;
- }
- ## SSL
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
- ssl_ecdh_curve secp384r1;
- ssl_session_cache shared:SSL:10m;
- ssl_session_tickets off;
- ssl_stapling on;
- ssl_stapling_verify on;
- resolver 208.67.220.220 208.67.222.222 valid=300s;
- resolver_timeout 5s;
- add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
- add_header X-Frame-Options SAMEORIGIN;
- add_header X-Content-Type-Options nosniff;
- ssl_certificate /etc/letsencrypt/live/partidopirata.org-0001/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/partidopirata.org-0001/privkey.pem;
- ssl_trusted_certificate /etc/letsencrypt/live/partidopirata.org-0001/chain.pem;
- server_name apoio.partidopirata.org;
- charset utf-8;
- client_max_body_size 75M;
- location /media {
- alias /home/jango/apoio-piratas.prod/apoio/inc;
- }
- location /static {
- alias /home/jango/apoio-piratas.prod/apoio/inc;
- }
- location / {
- uwsgi_pass apoio;
- include /home/jango/apoio-piratas.prod/uwsgi_params;
- }
- ## TODO: Consertar o FAQ
- location /faqs/ {
- return 307 /;
- }
- location /faqs/ask/ {
- return 307 /;
- }
- }
- ## Tor
- server {
- listen 127.0.0.1:42910;
- allow 127.0.0.1;
- deny all;
- add_header X-Frame-Options SAMEORIGIN;
- add_header X-Content-Type-Options nosniff;
- server_name apo5yfpbivxd5obb.onion;
- charset utf-8;
- client_max_body_size 75M;
- location /media {
- alias /home/jango/apoio-piratas.prod/apoio/inc;
- }
- location /static {
- alias /home/jango/apoio-piratas.prod/apoio/inc;
- }
- location / {
- uwsgi_pass apoio;
- include /home/jango/apoio-piratas.prod/uwsgi_params;
- }
- ## TODO: Consertar o FAQ
- location /faqs/ {
- return 307 /;
- }
- location /faqs/ask/ {
- return 307 /;
- }
- }
|