Hi, I’m currently trying to setup drone in a local environment. Every time I try to access the admin interface, I get redirected to gitea with “Unregistered Redirect URI” as error message.
Hi, I’m currently trying to setup drone in a local environment. Every time I try to access the admin interface, I get redirected to gitea with “Unregistered Redirect URI” as error message.
This error message would indicate that you configured a Gitea oauth2 application (in the Gitea user interface) and you specified an incorrect redirect uri. The redirect uri configured in Gitea must exactly match ${DRONE_SERVER_PROTO}://${DRONE_SERVER_HOST}/login (replace variables with actual values)
It sounds like a container network / dns problem. When you have multiple containers on separate networks you need to make sure they can talk to one another at the specified hostname. Unfortunately I cannot provide help with general networking / dns issues since this is outside my area of expertise.
You cannot use localhost to communicate across containers:
localhost always (every platform, every Docker setup) refers to the container itself and never to anything running in any other container or the host system. (Unless you’re running a container with --net host , which is odd on Docker for Mac.)
Please see the following thread:
If you continue to have issues with docker-compose networking, I recommend using the docker forum and engaging docker support. We are happy to answer general Drone questions and provide support for Drone, but we cannot provide general networking or general docker-compose support.