正在设置本地无人机服务器:无法登录。注册已关闭

setting up local drone server: Unable to login. Registration is closed

我正在尝试设置一个 local drone.io server for CD with my github account. I'm using the official docker container. The setup instructions says to add an application in github settings 来获取无人机 github 远程配置所需的客户端 ID 和密码,我已经完成了,与官方文档的唯一区别是我看到 "Developer Applications" 而不是 "Authorized Applications" 上的 "Register new application",我希望它是一样的。然后,我定义了环境变量:

REMOTE_DRIVER=github
REMOTE_CONFIG=https://github.com?client_id=${client_id}&client_secret=${client_secret}

用我自己的替换客户端 ID 和密码。然后我启动容器并尝试登录,我被重定向到 github 的授权页面,我授权它,当重定向回来时我得到这个错误:

Unable to login. Registration is closed.

重定向的 URL 是:

http://drone.myserver.com/login?error=access_denied

我真的不知道有什么可能 missing/misconfigured,相同的设置适用于 bitbucket 远程。

找到问题了。我发现 this one 的浏览无人机问题提到我需要将 open=true 添加到查询字符串中,以便无人机能够创建 github 应用程序。

如果您在网络无人机中获得 access_denied

这是 docker-撰写和回答 -> DRONE_OPEN=true: <br> 版本:'2' 服务: 无人机服务器: 图片:drone/drone:0.7 端口: - 80:8000 卷: - ./无人机:/var/lib/drone/ 重启:总是 环境: - DRONE_GITLAB=真 - DRONE_GITLAB_CLIENT=change_value - DRONE_GITLAB_SECRET=change_value - DRONE_GITLAB_URL=<a href="https://gitlab-01example.com" rel="nofollow noreferrer">https://gitlab-01example.com</a> - DRONE_SECRET=change_value - DRONE_GITLAB_SKIP_VERIFY=true - DRONE_DEBUG=真 - DRONE_OPEN=真 无人机代理: 图片:drone/drone:0.7 命令:代理 重启:总是 depends_on: - 无人机服务器 卷: - /var/run/docker.sock:/var/run/docker.sock 环境: - DRONE_SERVER=ws://drone-server:8000/ws/broker - DRONE_SECRET=change_value - DRONE_GITLAB_SKIP_VERIFY=true