summaryrefslogtreecommitdiff
path: root/nginx/http.d
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-29 07:40:09 +0100
committerJoe Carstairs <me@joeac.net>2026-06-29 07:40:09 +0100
commitc059bc34d8e60fa0c626e41566aa3bb1defe42e1 (patch)
treefea36566ab3487290d99caa614dd6c9e4c22cfdf /nginx/http.d
parentf2a3552286c6e943f2690ade80eb82f382b62cea (diff)
adds pwd.joeac.net.conf to nginx
Diffstat (limited to 'nginx/http.d')
-rw-r--r--nginx/http.d/pwd.joeac.net.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/nginx/http.d/pwd.joeac.net.conf b/nginx/http.d/pwd.joeac.net.conf
new file mode 100644
index 0000000..0808f09
--- /dev/null
+++ b/nginx/http.d/pwd.joeac.net.conf
@@ -0,0 +1,23 @@
+server {
+ server_name pwd.joeac.net;
+
+ location / {
+ proxy_pass http://localhost:9000;
+ }
+
+ listen 443 ssl; # managed by Certbot
+ ssl_certificate /etc/letsencrypt/live/pwd.joeac.net/fullchain.pem; # managed by Certbot
+ ssl_certificate_key /etc/letsencrypt/live/pwd.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 = pwd.joeac.net) {
+ return 301 https://$host$request_uri;
+ } # managed by Certbot
+
+ server_name pwd.joeac.net;
+ listen 80;
+ return 404; # managed by Certbot
+}