{ admin 0.0.0.0:2019 } localhost { redir /mailpit /mailpit/ handle_path /mailpit/* { rewrite * /mailpit{path} reverse_proxy mailpit:8025 } handle { reverse_proxy backend:8000 { header_up Host {host} } } tls internal { on_demand } }