summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-05-15 15:03:32 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-05-15 15:05:19 +0200
commit2af88efe1971d6b0ac57543aaa6dd044d5941356 (patch)
treed9c126dbc647d386f3f3fa837fe6628e4b484f88
parentaea1b2037b92c06d5fe7c5a4501802a4826dc0ff (diff)
Add misskey.s3.tyil.nl
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.s3.misskey13
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.s3.misskey17
2 files changed, 30 insertions, 0 deletions
diff --git a/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.s3.misskey b/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.s3.misskey
new file mode 100644
index 0000000..e616f75
--- /dev/null
+++ b/playbooks.d/webserver-nginx/share/sites.d/http/nl.tyil.s3.misskey
@@ -0,0 +1,13 @@
+server {
+ listen 80;
+ listen [::]:80;
+
+ server_name misskey.s3.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.s3.misskey b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.s3.misskey
new file mode 100644
index 0000000..86edd03
--- /dev/null
+++ b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.s3.misskey
@@ -0,0 +1,17 @@
+upstream s3_backend {
+ server 10.57.21.1:3900;
+}
+
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ server_name misskey.s3.tyil.nl;
+
+ ssl_certificate /etc/letsencrypt/live/misskey.s3.tyil.nl/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/misskey.s3.tyil.nl/privkey.pem;
+
+ location / {
+ root /var/www/nl.tyil.s3.misskey;
+ }
+}