[SOLVED] Wrong avatar URL with Gitea integration

#1

I’ve deployed Drone.io and Gitea with Docker, and can successfully login and see the repos on Drone.

However, the avatar URL is still pointing to “localhost:3000” instead of the endpoint specified with “DRONE_GITEA_SERVER”.

Is there some other configuration elsewhere for this?

My Drone docker-compose.yml file:

version: "3"
services:
    drone:
        volumes:
            - '/var/run/docker.sock:/var/run/docker.sock'
            - './drone:/data'
        environment:
            - DRONE_GITEA_SERVER=http://172.16.9.97:917/
            - DRONE_GIT_ALWAYS_AUTH=false
            - DRONE_RUNNER_CAPACITY=2
            - DRONE_SERVER_HOST=172.16.9.97
            - DRONE_SERVER_PROTO=http
            - DRONE_TLS_AUTOCERT=false
        ports:
            - '918:80'
            - '443:443'
        restart: always
        container_name: drone
        image: 'drone/drone:1'
0 Likes

#2

Found the issue, I forgot to configure ROOT_URL properly in Gitea’s app.ini

ROOT_URL = http://172.16.9.97:917

0 Likes