-
-
Notifications
You must be signed in to change notification settings - Fork 169
/
example_server_multicert.conf
27 lines (21 loc) · 1.13 KB
/
example_server_multicert.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
server {
# Listen to port 443 on both IPv4 and IPv6.
listen 443 ssl default_server reuseport;
listen [::]:443 ssl default_server reuseport;
# Domain names this server should respond to.
server_name yourdomain.org www.yourdomain.org;
# Load the ECDSA certificates.
ssl_certificate /etc/letsencrypt/live/test-ecc/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/test-ecc/privkey.pem;
# Load the RSA certificates.
ssl_certificate /etc/letsencrypt/live/test-rsa/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/test-rsa/privkey.pem;
# Load the Diffie-Hellman parameter.
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;
# Define the ciphers to use in the preferred order.
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:DHE+AESGCM:DHE:!RSA!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!CAMELLIA:!SEED";
return 200 'Let\'s Encrypt certificate successfully installed!';
add_header Content-Type text/plain;
}