From 3b040fac09eb158caf963d7c956610f99f8e0c17 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Mon, 5 Dec 2022 21:42:17 +0100 Subject: initial ansible setup --- roles/webserver/files/user_conf.d/memzero.conf | 43 ++++++++++++++++++++++++++ roles/webserver/files/www/git/index.html | 1 + roles/webserver/files/www/memzero/index.html | 1 + 3 files changed, 45 insertions(+) create mode 100644 roles/webserver/files/user_conf.d/memzero.conf create mode 100644 roles/webserver/files/www/git/index.html create mode 100644 roles/webserver/files/www/memzero/index.html (limited to 'roles/webserver/files') diff --git a/roles/webserver/files/user_conf.d/memzero.conf b/roles/webserver/files/user_conf.d/memzero.conf new file mode 100644 index 0000000..5419eb8 --- /dev/null +++ b/roles/webserver/files/user_conf.d/memzero.conf @@ -0,0 +1,43 @@ +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 git.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/git; +} + +server { + # Drop any request that does not match any of the other server names. + listen 443 ssl default_server; + ssl_reject_handshake on; +} diff --git a/roles/webserver/files/www/git/index.html b/roles/webserver/files/www/git/index.html new file mode 100644 index 0000000..a6978b1 --- /dev/null +++ b/roles/webserver/files/www/git/index.html @@ -0,0 +1 @@ +

Hello git!

diff --git a/roles/webserver/files/www/memzero/index.html b/roles/webserver/files/www/memzero/index.html new file mode 100644 index 0000000..4df77a4 --- /dev/null +++ b/roles/webserver/files/www/memzero/index.html @@ -0,0 +1 @@ +

Hello memzero!

-- cgit v1.2.3