summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx/share
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-07-18 19:31:59 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-07-18 19:31:59 +0200
commit88d701b7fa95051fa7f7bd5960a1c137b2402b69 (patch)
treea2729f888e16cd48735e5c6a9243ffc61a0e6624 /playbooks.d/webserver-nginx/share
parent27291a516d861be6ea2e67364e5c64dc0bbf88f3 (diff)
Add hosts for ombi
Diffstat (limited to 'playbooks.d/webserver-nginx/share')
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.arr13
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.arr23
2 files changed, 36 insertions, 0 deletions
diff --git a/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.arr b/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.arr
new file mode 100644
index 0000000..eeb6dfc
--- /dev/null
+++ b/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.arr
@@ -0,0 +1,13 @@
+server {
+ listen 80;
+ listen [::]:80;
+
+ server_name 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 b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.arr
new file mode 100644
index 0000000..f53b72a
--- /dev/null
+++ b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.arr
@@ -0,0 +1,23 @@
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ server_name arr.tyil.nl;
+
+ ssl_certificate /etc/letsencrypt/live/arr.tyil.nl/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/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:20827;
+ }
+}