[SOLVED] Gitea authentication not working

I have the following docker-compose file:

version: '2'

services:
        drone-server:
                image: drone/drone:0.8
                ports:
                        - 8000:8000
                        - 9000
                volumes:
                        - ./drone/:/var/lib/drone/
                restart: always
                environment:
                        - DRONE_OPEN=true
                        - DRONE_HOST=http://localhost
                        - DRONE_GITEA=true
                        - DRONE_GITEA_CLIENT=https://mydomain.de
                        - DRONE_SECRET=secret
        drone-agent:
                image: drone/agent:0.8

                command: agent
                restart: always
                depends_on:
                        - drone-server
                volumes:
                        - /var/run/docker.sock:/var/run/docker.sock
                environment:
                        - DRONE_SERVER=drone-server:9000
                        - DRONE_SECRET=secret

When I try to login it says that the authentication failed and I see the following in the log:
drone-server_1 | time=“2018-05-08T17:44:37Z” level=error msg=“cannot authenticate user. unexpected end of JSON input”

What am I doing wrong?

1 Like

Just found my mistake:
It is not DRONE_GITEA_CLIENT, but DRONE_GITEA_URL