Update nginx/nginx.conf
This commit is contained in:
parent
f2b6d40ce2
commit
e770c6dc98
1 changed files with 10 additions and 1 deletions
|
@ -31,12 +31,19 @@ http {
|
|||
keepalive_timeout 65;
|
||||
|
||||
gzip on;
|
||||
http2 on;
|
||||
|
||||
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||
|
||||
|
||||
# modern configuration
|
||||
ssl_protocols TLSv1.3;
|
||||
ssl_ecdh_curve X25519:prime256v1:secp384r1;
|
||||
ssl_prefer_server_ciphers off;
|
||||
|
||||
# Make sure to generate it first
|
||||
ssl_dhparam /etc/ssl/dhparam.pem;
|
||||
|
||||
# OCSP stapling
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
|
@ -62,7 +69,9 @@ http {
|
|||
listen 443 quic reuseport default_server;
|
||||
listen [::]:443 ssl default_server;
|
||||
|
||||
return 200;
|
||||
# Make sure to generate
|
||||
ssl_certificate snakeoil.pem;
|
||||
ssl_certificate_key snakeoil.key;
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
|
Loading…
Reference in a new issue