Skip to content

Instantly share code, notes, and snippets.

View ruiruige's full-sized avatar

瑞瑞哥 ruiruige

View GitHub Profile
@ruiruige
ruiruige / nginx.conf
Created April 16, 2020 18:00 — forked from fotock/nginx.conf
Nginx SSL 安全配置最佳实践.
# 生成 dhparam.pem 文件, 在命令行执行任一方法:
# 方法1: 很慢
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
# 方法2: 较快
# 与方法1无明显区别. 2048位也足够用, 4096更强
openssl dhparam -dsaparam -out /etc/nginx/ssl/dhparam.pem 4096