童家小站

英雄末路当磨折

庆祝一下童家小站SSl配置完工

《庆祝一下童家小站SSl配置完工》
《庆祝一下童家小站SSl配置完工》
《庆祝一下童家小站SSl配置完工》

我的SSL配置

 limit_conn perserver 300;
    limit_conn perip 25;
    limit_rate 512k;
    #HTTP_TO_HTTPS_START
    if ($server_port !~ 443){
        rewrite ^(/.*)$ https://$host$1 permanent;
    }
    #HTTP_TO_HTTPS_END
    ssl_certificate    /etc/letsencrypt/live/youtonghy.com/fullchain.pem;
    ssl_certificate_key    /etc/letsencrypt/live/youtonghy.com/privkey.pem;
    ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_ciphers TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+ECDSA+AES128:EECDH+aRSA+AES128:RSA+AES128:EECDH+ECDSA+AES256:EECDH+aRSA+AES256:RSA+AES256:EECDH+ECDSA+3DES:EECDH+aRSA+3DES:RSA+3DES:!MD5;
    ssl_prefer_server_ciphers on;
    ssl_session_cache shared:SSL:10m;
    ssl_session_timeout 10m;
    error_page 497  https://$host$request_uri;
    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
点赞

Leave a Reply

Your email address will not be published. Required fields are marked *