Config for reverse proxy

If both backend apps are HTTP/S based, the Caddy configuration can be as simple as:

server.local {

	tls certificate_file key_file
 
	redir /service-a /service-a/
	handle_path /service-a* {
		reverse_proxy service-a:3000
	}

	redir /service-b /service-b/
	handle_path /service-b* {
		reverse_proxy service-a:8086
	}
}

with some small adjustments, depending on your situation. Make sure you understand the subfolder problem, in case you run into some weird behaviour with your apps.

If any of these apps is not HTTP/S based (I’m guessing InfluxDB is such app), you may need to look at: