I currently cannot login into drone if the registration is closed, even when i am listed as a admin. I can login into gogs with myuser
but drone gives this error on the logs
level=error msg="cannot register myuser. registration closed"
And the url ends with login/error?code=access_denied
I am using the following environment:
DRONE_OPEN=false
DRONE_GOGS=true
DRONE_GOGS_PRIVATE_MODE=True
DRONE_ADMIN=̣myuser
DRONE_GOGS_URL=http://git.example.com
DRONE_HOST=http://drone.example.com
DRONE_SECRET=mysecret
$ sudo docker inspect -f "{{ .Config.Env }}" drone_server_1
[DRONE_HOST=http://drone.example.com DRONE_GOGS=true DRONE_SECRET=mysecret DRONE_GOGS_PRIVATE_MODE=True DRONE_ADMIN=̣myuser DRONE_GOGS_URL=http://git.example.com PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DATABASE_DRIVER=sqlite3 DATABASE_CONFIG=/var/lib/drone/drone.sqlite GODEBUG=netdns=go XDG_CACHE_HOME=/var/lib/drone]
Any ideas?