summaryrefslogtreecommitdiff
path: root/nginx/http.d
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-30 09:36:12 +0100
committerJoe Carstairs <me@joeac.net>2026-06-30 09:36:12 +0100
commit51ce3374b9fc3c92eb22b3135b57c2d91660613f (patch)
treeeff695fee9cf0d1bc6860fbabac579164e7e7990 /nginx/http.d
parent16576fd1f6a3c23fd88a23f869312114914af652 (diff)
adds ln module
Diffstat (limited to 'nginx/http.d')
-rw-r--r--nginx/http.d/ln.joeac.net.conf25
1 files changed, 25 insertions, 0 deletions
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
+}