Split nginx config; added start of gateway routing

This commit is contained in:
Jef Roosens 2021-12-26 09:02:22 +01:00
parent 1d14f39642
commit 7e09e6879c
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
5 changed files with 39 additions and 17 deletions

View file

@ -0,0 +1,13 @@
# vim: ft=nginx
server {
listen 80;
listen [::]:80;
location ~ /api/v1/posts/ {
proxy_pass http://${RB_BLOG}/api/v1/posts/;
}
location ~ /api/v1/sections/ {
proxy_pass http://${RB_BLOG}/api/v1/sections/;
}
}