1 Star 0 Fork 187

马秋平/django-idcops

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
idcops_nginx_ssl_conf 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
decbe 提交于 2020-12-13 10:48 +08:00 . update deploy config
listen 443 ssl http2;
#HTTP_TO_HTTPS_START
if ($server_port !~ 443){
rewrite ^(/.*)$ https://$host$1 permanent;
}
if ( $host != 'idcops.iloxp.com' ) {
rewrite ^(.*)$ https://www.iloxp.com$1 permanent;
}
#HTTP_TO_HTTPS_END
ssl_certificate /etc/nginx/cert/idcops.iloxp.com/idcops.iloxp.com_chain.crt; # managed by Certbot
ssl_certificate_key /etc/nginx/cert/idcops.iloxp.com/idcops.iloxp.com_key.key; # managed by Certbot
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5';
resolver 8.8.8.8 8.8.4.4 valid=300s;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
#一键申请SSL证书验证目录相关设置
location ~ \.well-known{
allow all;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/qiupingma/django-idcops.git
git@gitee.com:qiupingma/django-idcops.git
qiupingma
django-idcops
django-idcops
master

搜索帮助