We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! Using service behind CF and Nginx. van somebody gives best practice nginx config? Thanx. My config:
server { listen 80; server_name ip.***.xyz;
# Редирект с HTTP на HTTPS return 301 https://$host$request_uri;
}
server { listen 443 ssl; server_name ip.***.xyz;
# Параметры SSL ssl_certificate /var/docker/cloudflare_tls/origin.pem; ssl_certificate_key /var/docker/cloudflare_tls/key.pem; # Дополнительные параметры SSL (рекомендуется) ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers 'HIGH:!aNULL:!MD5'; ssl_prefer_server_ciphers on; # Настройки для вашего приложения location / { proxy_pass http://localhost:18966; # Прокси на ваш сервис proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; # Установка заголовков для безопасности add_header X-Frame-Options DENY; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block"; add_header Referrer-Policy no-referrer-when-downgrade; } # Логи (опционально) access_log /var/log/nginx/ip.***.xyz.access.log; error_log /var/log/nginx/ip.***.xyz.error.log;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi! Using service behind CF and Nginx. van somebody gives best practice nginx config?
Thanx.
My config:
server {
listen 80;
server_name ip.***.xyz;
}
server {
listen 443 ssl;
server_name ip.***.xyz;
}
The text was updated successfully, but these errors were encountered: