aboutsummaryrefslogblamecommitdiff
path: root/roles/webserver/files/user_conf.d/memzero.conf
blob: 4e709ce0920c0e9a4b4b8d238707e48f286a0408 (plain) (tree)
























                                                                        
                                








                                                                        
                   






                                                                         
server {
    # Listen to port 443 on both IPv4 and IPv6.
    listen 443 ssl;
    listen [::]:443 ssl;

    # Domain names this server should respond to.
    server_name memzero.de www.memzero.de;

    # Load the certificate files.
    ssl_certificate         /etc/letsencrypt/live/memzero/fullchain.pem;
    ssl_certificate_key     /etc/letsencrypt/live/memzero/privkey.pem;
    ssl_trusted_certificate /etc/letsencrypt/live/memzero/chain.pem;

    # Load the Diffie-Hellman parameter.
    ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;

    root /www/memzero;
}

server {
    # Listen to port 443 on both IPv4 and IPv6.
    listen 443 ssl;
    listen [::]:443 ssl;

    # Domain names this server should respond to.
    server_name blog.memzero.de;

    # Load the certificate files.
    ssl_certificate         /etc/letsencrypt/live/memzero/fullchain.pem;
    ssl_certificate_key     /etc/letsencrypt/live/memzero/privkey.pem;
    ssl_trusted_certificate /etc/letsencrypt/live/memzero/chain.pem;

    # Load the Diffie-Hellman parameter.
    ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;

    root /www/blog;
}

server {
    # Drop any request that does not match any of the other server names.
    listen               443 ssl default_server;
    ssl_reject_handshake on;
}