From 51ce3374b9fc3c92eb22b3135b57c2d91660613f Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 30 Jun 2026 09:36:12 +0100 Subject: adds ln module --- nginx/http.d/ln.joeac.net.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nginx/http.d/ln.joeac.net.conf (limited to 'nginx/http.d') diff --git a/nginx/http.d/ln.joeac.net.conf b/nginx/http.d/ln.joeac.net.conf new file mode 100644 index 0000000..5e21c32 --- /dev/null +++ b/nginx/http.d/ln.joeac.net.conf @@ -0,0 +1,25 @@ +server { + server_name ln.joeac.net; + + location / { + root /var/ln.joeac.net/public; + try_files $uri $uri.html $uri/index.html =404; + error_page 404 /index.html; + } + + listen 443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/ln.joeac.net/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/ln.joeac.net/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot +} + +server { + if ($host = ln.joeac.net) { + return 301 https://$host$request_uri; + } # managed by Certbot + + server_name ln.joeac.net; + listen 80; + return 404; # managed by Certbot +} -- cgit v1.2.3