Skip to content

Instantly share code, notes, and snippets.

View immatt2015's full-sized avatar
🤒
Out sick

immatt2015 immatt2015

🤒
Out sick
View GitHub Profile
@immatt2015
immatt2015 / nginx.conf
Created July 13, 2021 07:49 — 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
047a9f508aa620dd0a8c17d01fe076f2764697983d88d3f1eabc8473aa44d40acb3475cea3bdfbd60a9ab70576ba74857233e2410de2f849d99c5e1157843e34c2