Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Upstreams
- #upstream backend_mainroute_portfolio {
- # server api.marcotextil.com.br;
- #}
- server {
- listen 80 ;
- listen [::]:80;
- listen *:443 ssl;
- server_name api.marcotextil.com.br;
- client_max_body_size 300M;
- access_log /var/log/nginx/api.marcotextil.com.br/access.log main;
- error_log /var/log/nginx/api.marcotextil.com.br/error.log;
- ssl on;
- ssl_certificate /etc/letsencrypt/live/marcotextil.com.br/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/marcotextil.com.br/privkey.pem; # managed by Certbot
- # ssl_dhparam /etc/ssl/certs/dhparams.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_session_timeout 1d;
- ssl_session_cache shared:SSL:50m;
- ssl_stapling on;
- ssl_stapling_verify on;
- ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
- ssl_prefer_server_ciphers on;
- #add_header X-Frame-Options DENY;
- add_header X-Content-Type-Options nosniff;
- add_header Strict-Transport-Security max-age=15768000;
- location / {
- allow all;
- proxy_http_version 1.1;
- #proxy_buffering off;
- #proxy_redirect off;
- proxy_set_header Accept-Encoding "";
- #proxy_set_header Host $host;
- proxy_set_header Host api.marcotextil.com.br;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header X-Real-IP $remote_addr;
- #proxy_set_header X-Forwarded-Proto http;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- #access_log off;
- #proxy_set_header X-Forwarded-Proto https;
- #proxy_set_header X-Forwarded-Port 443;
- #proxy_hide_header X-Frame-Options;
- proxy_hide_header 'x-frame-options';
- proxy_redirect off;
- #proxy_set_header Host $host;
- proxy_set_header X-Nginx-Proxy true;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_pass http://10.171.161.32:8091;
- #proxy_redirect off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement