rerouting to api

This commit is contained in:
2025-11-18 23:29:39 +00:00
parent b2c88eccf6
commit 2eb7fe424c

View File

@@ -24,8 +24,8 @@ http {
root /var/www/certbot;
}
location /api/ {
proxy_pass http://localhost:8080;
location /posts/ {
proxy_pass http://localhost:8080/posts;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;