{ admin 0.0.0.0:2019 } localhost { redir /mailpit /mailpit/ handle_path /mailpit/* { rewrite * /mailpit{path} reverse_proxy mailpit:8025 } handle { reverse_proxy dev:5173 { header_up Origin "^https://localhost$" "http://localhost" } } tls internal { on_demand } }