Advertisement
Guest User

Untitled

a guest
Dec 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 2.54 KB | None | 0 0
  1. # FORGE CONFIG (DOT NOT REMOVE!)
  2. include forge-conf/frontend.marmify.com.br/before/*;
  3.  
  4. map $sent_http_content_type $expires {
  5.     "text/html"                 epoch;
  6.     "text/html; charset=utf-8"  epoch;
  7.     default                     off;
  8. }
  9.  
  10. server {
  11.     listen 443 ssl http2;
  12.     listen [::]:443 ssl http2;
  13.     server_name frontend.marmify.com.br;
  14.  
  15.     # FORGE SSL (DO NOT REMOVE!)
  16.     ssl_certificate /etc/nginx/ssl/frontend.marmify.com.br/461601/server.crt;
  17.     ssl_certificate_key /etc/nginx/ssl/frontend.marmify.com.br/461601/server.key;
  18.  
  19.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  20.     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:!3DES';
  21.     ssl_prefer_server_ciphers on;
  22.     ssl_dhparam /etc/nginx/dhparams.pem;
  23.  
  24.     add_header X-Frame-Options "SAMEORIGIN";
  25.     add_header X-XSS-Protection "1; mode=block";
  26.     add_header X-Content-Type-Options "nosniff";
  27.  
  28.     charset utf-8;
  29.  
  30.     gzip            on;
  31.     gzip_types      text/plain application/xml text/css application/javascript;
  32.     gzip_min_length 1000;
  33.  
  34.     # FORGE CONFIG (DOT NOT REMOVE!)
  35.     include forge-conf/frontend.marmify.com.br/server/*;
  36.  
  37.     location / {
  38.         expires $expires;
  39.  
  40.         proxy_set_header Host               $host;
  41.         proxy_set_header X-Real-IP          $remote_addr;
  42.         proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
  43.         proxy_set_header X-Forwarded-Proto  $scheme;
  44.         proxy_redirect              off;
  45.         proxy_read_timeout          1m;
  46.         proxy_connect_timeout       1m;
  47.         proxy_pass                          http://127.0.0.1:3000; # set the adress of the Node.js
  48.     }
  49.  
  50.     access_log off;
  51.     error_log  /var/log/nginx/frontend.marmify.com.br-error.log error;
  52.  
  53.     location ~ /\.(?!well-known).* {
  54.         deny all;
  55.     }
  56. }
  57.  
  58. # FORGE CONFIG (DOT NOT REMOVE!)
  59. include forge-conf/frontend.marmify.com.br/after/*;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement