Run as root to be able to bind port 80
Add a new file to conf directory
Format
{
"hostname":"localhost",
"routes": [
{
"location":"/api/",
"proxy_url": "http://localhost:3001/"
},
{
"location":"/",
"proxy_url": "http://localhost:3000/"
}
]
}
Note:
While matching the requests as per routes, for matched block, any string that comes after the corresponding location will be concatenated with the proxy_url and requested
Examples for reference: