summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx/share/sites.d
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-10-31 08:39:56 +0100
committerPatrick Spek <p.spek@tyil.nl>2022-10-31 08:39:56 +0100
commit1c532ba7405e39f6d34b6ba66bfc01866769f53f (patch)
tree1eda1457096a7a88cb6a0b9dfc6989d4ee54df39 /playbooks.d/webserver-nginx/share/sites.d
parent28e21b70e5b315f100cb436b1be8df135e002b70 (diff)
Add empty nginx config for chat.tyil.nl
Diffstat (limited to 'playbooks.d/webserver-nginx/share/sites.d')
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.chat13
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.chat20
2 files changed, 33 insertions, 0 deletions
diff --git a/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.chat b/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.chat
new file mode 100644
index 0000000..68f7d63
--- /dev/null
+++ b/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.chat
@@ -0,0 +1,13 @@
+server {
+ listen 80;
+ listen [::]:80;
+
+ server_name chat.tyil.nl;
+
+ include /etc/nginx/snippets.d/certbot.conf;
+ include /etc/nginx/snippets.d/headers.conf;
+
+ location / {
+ return 301 https://$host$request_uri;
+ }
+}
diff --git a/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.chat b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.chat
new file mode 100644
index 0000000..861ea3e
--- /dev/null
+++ b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.chat
@@ -0,0 +1,20 @@
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ server_name chat.tyil.nl;
+
+ ssl_certificate /etc/letsencrypt/live/chat.tyil.nl/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/chat.tyil.nl/privkey.pem;
+
+ include /etc/nginx/snippets.d/certbot.conf;
+ include /etc/nginx/snippets.d/headers.conf;
+ include /etc/nginx/snippets.d/ssl.conf;
+
+ #root /var/www/nl.tyil.p;
+
+ location = / {
+ #return 301 https://www.tyil.nl/services/xmpp/;
+ return 404;
+ }
+}