From 2474f6cade62ba937ff714f0aa54555f7ebc18d8 Mon Sep 17 00:00:00 2001 From: Jason McCormick Date: Mon, 2 Nov 2026 20:33:14 -0500 Subject: only update when changed, add daemon --- deploy/ip.mfamily.org.nginx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 deploy/ip.mfamily.org.nginx (limited to 'deploy/ip.mfamily.org.nginx') diff --git a/deploy/ip.mfamily.org.nginx b/deploy/ip.mfamily.org.nginx new file mode 100644 index 0000000..08cbeb5 --- /dev/null +++ b/deploy/ip.mfamily.org.nginx @@ -0,0 +1,28 @@ +server { + listen 80; + listen [::]:80; + server_name ip.mfamily.org; + + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + listen [::]:443 ssl; + server_name ip.mfamily.org; + + ssl_certificate /etc/letsencrypt/live/ip.mfamily.org/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/ip.mfamily.org/privkey.pem; + + location = / { + proxy_pass http://127.0.0.1:8080/; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_pass_request_body off; + proxy_set_header Content-Length ""; + } + + location / { + return 404; + } +} -- cgit v1.2.3