- Caddy version (
caddy version
): v2.4.5
2. How I run Caddy:
I am running caddy in docker compose
a. System environment:
Docker
d. My complete Caddyfile or JSON config:
http://cp-btc-litenode.coinp.co {
respond "btc litenode server is running"
}
http://node.coinprofile.co {
handle_path /tbtc {
reverse_proxy * electrum_testnet:7000
}
handle /ttbtc {
uri strip_prefix /ttbtc
reverse_proxy * electrum_testnet:7000
}
handle_path /ping {
respond "Pong!"
}
}
3. The problem I’m having:
electrum requires basic authentication but it seems that caddy is not forwarding the auth details to it. electrum returns Unauthorized
while it is supposed to return forbidden
if the auth is not currect.
5. What I already tried:
I have tried changing reverse_proxy * electrum_testnet:7000
to reverse_proxy * http://username:password@electrum_testnet:7000
but it still didn’t work