ini nginx的-SSL-config.conf
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini nginx的-SSL-config.conf相关的知识,希望对你有一定的参考价值。
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
ssl_session_cache shared:SSL:10m;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_session_timeout 1d;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
add_header X-Frame-Options DENY;
add_header Strict-Transport-Security max-age=15768000;
add_header X-Xss-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
location ~ /.well-known { allow all; }
ini nginx的
server {
ssl on;
listen 443 ssl;
listen [::]:443 ssl;
passenger_enabled on;
ssl_certificate /etc/nginx/sslnew/solenergy_mx.crt;
ssl_certificate_key /etc/nginx/sslnew/solenergy_mx.key;
server_name solenergy.mx;
rails_env production;
root /opt/nginx/html/solcrm/public/;
location = /50x.html {
root html;
}
client_max_body_size 4G;
keepalive_timeout 10;
}
以上是关于ini nginx的-SSL-config.conf的主要内容,如果未能解决你的问题,请参考以下文章
ini Nginx位置块特定文件#nginx
ini 为nginx改变了prerender.io nginx.conf
ini nginx的
ini nginx的:配置
ini nginx的域名配置参考
ini nginx的前后端分离配置文件