From adc5498641db3c308798ef6afa9eb0e9623d1475 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Fri, 26 Jun 2026 10:40:50 +0100 Subject: [PATCH] adds nginx config, can make install_nginx --- nginx/http.d | 1 - nginx/http.d/joeac.net.conf | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) delete mode 120000 nginx/http.d create mode 100644 nginx/http.d/joeac.net.conf diff --git a/nginx/http.d b/nginx/http.d deleted file mode 120000 index fafa3e8..0000000 --- a/nginx/http.d +++ /dev/null @@ -1 +0,0 @@ -/home/broughton/.config/nginx/http.d \ No newline at end of file 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 +}