Hello, I just pulled the drone.io image and did the basic configuration to allow it to connect to my self hosted Gogs, but I get an authentication error when trying to login after that.
I created a webhook on Gogs but I have no clue if I even should have done this.
Here is my docker-compose file with the settings from drone-server, drone-agent and Gogs:
What should I do?
Thank you in advance
It looks like you have disabled registration, but forgot to set the DRONE_ADMIN variable. See http://docs.drone.io/user-registration/#closed-registration
Thank you, you were right, It all works now!
this is because it is missing the scheme in the url (
What environment variable should write?
I believe DRONE_GOGS_SERVER, but it would be helpful if you would provide your configuration. It makes our job easier
Apparently Drone does not correctly call the APi Gogs for authorization, since according to the description of the api in github there is no such call …
With this env also error
Login Failed. Get gogs. gogs. 192. 168. 5. 187. xip. io/api/v1/users/admin/tokens: unsupported protocol scheme “”
- name: DRONE_ALWAYS_AUTH
- name: DRONE_DATABASE_DATASOURCE
- name: DRONE_DATABASE_DRIVER
- name: DRONE_GOGS_SERVER
value: gogs. gogs. 192. 168. 5. 187. xip. io
- name: DRONE_KUBERNETES_ENABLED
- name: DRONE_KUBERNETES_NAMESPACE
- name: DRONE_KUBERNETES_SERVICE_ACCOUNT
- name: DRONE_LOGS_DEBUG
- name: DRONE_PRIVATE_MODE
- name: DRONE_SERVER_HOST
value: drone. drone. 192. 168. 5. 187. xip. io
- name: DRONE_SERVER_PROTO
- name: DRONE_TLS_AUTOCERT
- name: DRONE_RPC_SECRET
I am sorry :((((((
DRONE_GOGS_SERVER=http :// !!! and all work!!!