From 673aaf1c13cfdbec74f99d771ad1d5398dc4613f Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 29 Jun 2026 09:06:17 +0100 Subject: installs nginx per module --- nginx/http.d/@.joeac.net.conf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 nginx/http.d/@.joeac.net.conf (limited to 'nginx/http.d/@.joeac.net.conf') diff --git a/nginx/http.d/@.joeac.net.conf b/nginx/http.d/@.joeac.net.conf new file mode 100644 index 0000000..24b31fb --- /dev/null +++ b/nginx/http.d/@.joeac.net.conf @@ -0,0 +1,27 @@ +server { + server_name joeac.net; + + location / { + proxy_pass http://127.0.0.1:8080; + } + + listen [::]:443 ssl ipv6only=on; # managed by Certbot + listen 443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/joeac.net-0001/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/joeac.net-0001/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 = joeac.net) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80 default_server; + listen [::]:80 default_server; + + server_name joeac.net; + return 404; # managed by Certbot +} -- cgit v1.2.3