From cd3e0492b7cec021b729322e23c3fbc44788e798 Mon Sep 17 00:00:00 2001 From: Adam French Date: Tue, 18 Nov 2025 23:36:55 +0000 Subject: [PATCH] update nginx for routing api --- html/index.html | 3 +-- nginx/nginx.conf | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/html/index.html b/html/index.html index 896f68a..ea6b081 100644 --- a/html/index.html +++ b/html/index.html @@ -11,8 +11,7 @@ AF - > -

Stay here please...

+

Shrines

Evangelion diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 145f2a8..407e684 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -24,6 +24,10 @@ http { root /var/www/certbot; } + location = /posts { + return 301 /posts/; + } + location /posts/ { proxy_pass http://localhost:8080/posts; proxy_set_header Host $host;