felia/.nginx/self/user_conf.d/example_server.conf

20 lines
713 B
Plaintext
Raw Normal View History

2022-09-28 05:13:33 +00:00
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 felia.pegasust.com www.felia.pegasust.com;
# Load the certificate files.
ssl_certificate /etc/letsencrypt/live/felia/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/felia/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/felia/chain.pem;
# Load the Diffie-Hellman parameter.
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;
return 200 'Let\'s Encrypt certificate successfully installed!';
add_header Content-Type text/plain;
}