summaryrefslogtreecommitdiff
path: root/nginx
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-26 10:40:50 +0100
committerJoe Carstairs <me@joeac.net>2026-06-29 07:32:29 +0100
commitadc5498641db3c308798ef6afa9eb0e9623d1475 (patch)
treede08810af251af4380e9336dc0125d34d3c7b345 /nginx
parent74d779ee350c6603e1470ee5f63d7c73332442a0 (diff)
adds nginx config, can make install_nginx
Diffstat (limited to 'nginx')
l---------nginx/http.d1
-rw-r--r--nginx/http.d/joeac.net.conf27
2 files changed, 27 insertions, 1 deletions
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
+}