From 27291a516d861be6ea2e67364e5c64dc0bbf88f3 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 18 Jul 2022 10:12:48 +0200 Subject: Add hosts for readarr --- .../share/sites.d/http/nl.tyil.arr.read | 13 ++++++++++++ .../share/sites.d/https/nl.tyil.arr.read | 23 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.arr.read create mode 100644 playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.arr.read (limited to 'playbooks.d/webserver-nginx') diff --git a/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.arr.read b/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.arr.read new file mode 100644 index 0000000..82002bc --- /dev/null +++ b/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.arr.read @@ -0,0 +1,13 @@ +server { + listen 80; + listen [::]:80; + + server_name read.arr.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.arr.read b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.arr.read new file mode 100644 index 0000000..3af4341 --- /dev/null +++ b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.arr.read @@ -0,0 +1,23 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name read.arr.tyil.nl; + + ssl_certificate /etc/letsencrypt/live/read.arr.tyil.nl/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/read.arr.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; + + location / { + proxy_http_version 1.1; + proxy_set_header Connection $http_connection; + proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header X-Forwarded-For $remote_addr; + + proxy_pass http://127.0.0.1:20834; + } +} -- cgit v1.1