Split nginx config; added start of gateway routing
This commit is contained in:
parent
1d14f39642
commit
7e09e6879c
5 changed files with 39 additions and 17 deletions
13
nginx/gateway.conf.template
Normal file
13
nginx/gateway.conf.template
Normal 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/;
|
||||
}
|
||||
}
|
||||
Reference in a new issue