Advertisement
Guest User

Untitled

a guest
Dec 27th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.49 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.     add_header X-Frame-Options "SAMEORIGIN";
  16.     add_header X-XSS-Protection "1; mode=block";
  17.     add_header X-Content-Type-Options "nosniff";
  18.  
  19.     charset utf-8;
  20.  
  21.     gzip            on;
  22.     gzip_types      text/plain application/xml text/css application/javascript;
  23.     gzip_min_length 1000;
  24.  
  25.     # FORGE CONFIG (DOT NOT REMOVE!)
  26.     include forge-conf/frontend.marmify.com.br/server/*;
  27.  
  28.     location / {
  29.         expires $expires;
  30.  
  31.         proxy_redirect off;
  32.         proxy_set_header Host               $host;
  33.         proxy_set_header X-Real-IP          $remote_addr;
  34.         proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
  35.         proxy_set_header X-Forwarded-Proto  $scheme;
  36.         proxy_read_timeout          1m;
  37.         proxy_connect_timeout       1m;
  38.         proxy_pass                          http://127.0.0.1:3000; # set the adress of the Node.js
  39.     }
  40.  
  41.     access_log off;
  42.     error_log  /var/log/nginx/frontend.marmify.com.br-error.log error;
  43.  
  44.     location ~ /\.(?!well-known).* {
  45.         deny all;
  46.     }
  47. }
  48.  
  49. # FORGE CONFIG (DOT NOT REMOVE!)
  50. include forge-conf/frontend.marmify.com.br/after/*;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement