summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.media
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-04-16 09:44:53 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-04-16 09:44:53 +0200
commit5ab01b1d322304bc4f80ef7bff339cc300838845 (patch)
tree2224884bd2ce4a4b04a1a26b71bcc4280fed260d /playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.media
parente25f266f8b7e4a058b06b4d9226d566bcdeba74b (diff)
Add media.tyil.nl
Diffstat (limited to 'playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.media')
-rw-r--r--playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.media22
1 files changed, 22 insertions, 0 deletions
diff --git a/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.media b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.media
new file mode 100644
index 0000000..9d811dc
--- /dev/null
+++ b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil.media
@@ -0,0 +1,22 @@
+server {
+ listen 443 ssl http2;
+ listen [::]:443 ssl http2;
+
+ server_name media.tyil.nl;
+
+ ssl_certificate /etc/letsencrypt/live/media.tyil.nl/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/media.tyil.nl/privkey.pem;
+
+ include /etc/nginx/snippets.d/ssl.conf;
+ include /etc/nginx/snippets.d/certbot.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://172.31.0.1:2003;
+ }
+}