From 6eeee752d315c111e5765526ddb653c43ff8d9a2 Mon Sep 17 00:00:00 2001 From: Adam French Date: Thu, 20 Nov 2025 20:39:21 +0000 Subject: [PATCH] fixed routing behaviour --- nginx/nginx.conf.template | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index 64fbe5b..dc03588 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -3,6 +3,9 @@ events { } http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + server_tokens off; charset utf-8; @@ -23,12 +26,22 @@ http { server { - listen 443 ssl http2; + listen 443 ssl; + http2 on; + + root /etc/nginx/html; + index index.html; + ssl_certificate /etc/letsencrypt/live/adam-french.co.uk/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/adam-french.co.uk/privkey.pem; server_name adam-french.co.uk; + # Serve your HTML site + location / { + try_files $uri $uri/ =404; + } + location ~ /.well-known/acme-challenge/ { root /var/www/certbot; }