epoch;
"text/html; charset=utf-8" epoch;
default off;
}
server {
listen 80;
listen 443 ssl;
server_name site.ru
#GZIP SETTINGS
gzip on;
gzip_types text/plain application/xml text/css application/javascript;
gzip_min_length 1000;
# ADD HEADERS
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
# SSL SETTINGS
ssl_certificate /etc/letsencrypt/live/site.ru/fullchain.pem; # managed $
ssl_certificate_key /etc/letsencrypt/live/site.ru/privkey.pem; # manage$
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location / {
expires $expires;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 1m;
proxy_connect_timeout 1m;
proxy_pass http://127.0.0.1:3001; # set the address of the Node.js instance here
}
location ~ /\.(?!well-known).* {
deny all; } }
Это не ваши настройки 🌚
Обсуждают сегодня