update nginx for routing api

This commit is contained in:
2025-11-18 23:36:55 +00:00
parent 2eb7fe424c
commit cd3e0492b7
2 changed files with 5 additions and 2 deletions

View File

@@ -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;