update nginx for routing api
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user