I have setup drone working with gitea and they are both hosted as docker containers on my Raspberry Pi on the local network.
I would like to be able to also use those services from outside my local network using my domain name (using Apache to install a reverse proxy). The problem I see now is about the authentication with gitea. Indeed, drone would have to change the redirection URL sent to gitea depending on if I access it from the local network or from the domain name.
I have seen a few posts describing how to setup drone with DRONE_HOST but I am quite lost as I see contradictory information.
If anyone could describe a way to achieve this (or tell me if it’s impossible), I’d be really happy.