Hello,
I have hosted azuracast in my minipc and I want to forward the IP of the song requester, right now it’s only taking one IP the “podman container ip” so basically Azuracast thinks that every request is coming from the IP address 10.89.1.1 which is the IP of interface created by podman.
57: podman3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 0e:fa:6d:33:b9:39 brd ff:ff:ff:ff:ff:ff
inet 10.89.1.1/24 brd 10.89.1.255 scope global podman3
valid_lft forever preferred_lft forever
inet6 fe80::b876:abff:fede:c3ef/64 scope link
valid_lft forever preferred_lft forever
also I am explicitly forwarding the IP using X-Forwarded-Host.
reverse_proxy http://localhost:4000/ {
header_up X-Forwarded-Host {host}
}
I don’t know how to resolve it, any help would be appreciated :)
Edit: I didn’t had to so any of this stuff, what I should have done is just enabling “reverse proxy” option in Azuracast since Caddy forwards those headers by default unlike nginx. Thank you very much for helping me <3
To be fair, it is confusing and I don’t recall whether the caddy docs mention it. Some applications require you to set a field called ‘trusted proxies’ and others will just work straight away.