Connect: cannot assign requested address

Hi everyone, I’m in need of some help while setting up Drone CI with Gitea, I am getting a connect: cannot assign requested address error with my current setup even tho I followed the deployment guide by the letter.

I’m using Docker for all of this, here is my compose:

version: "3"

networks:
  gitea:
    external: false

services:
  server:
    image: gitea/gitea:1.13.0
    container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    networks:
      - gitea
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
      - "222:22"

  drone-ci:
    image: drone/drone:latest
    volumes:
      - ./drone:/data
    networks:
      - gitea
    environment:
      - DRONE_GITEA_SERVER=https://git.jae.moe
      - DRONE_GITEA_CLIENT_ID=imcool
      - DRONE_GITEA_CLIENT_SECRET=imsecret
      - DRONE_RPC_SECRET=imverysecret
      - DRONE_SERVER_HOST=ci.jae.moe
      - DRONE_SERVER_PROTO=https
    restart: always
    ports:
      - 1340:80

  drone-runner:
    image: drone/drone-runner-docker:latest
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - gitea
    environment:
      - DRONE_RPC_PROTO=http
      - DRONE_RPC_HOST=drone-ci
      - DRONE_RPC_SECRET=imverysecret
      - DRONE_RUNNER_CAPACITY=5
      - DRONE_RUNNER_NAME=kronos

Here is the log on the server side:

drone-ci_1      | {"level":"error","msg":"oauth: cannot exchange code: [very secret code here]: Post \"https://git.jae.moe/login/oauth/access_token\": dial tcp [2a01:e0a:14f:5230:fabc:12ff:fe31:97fe]:443: connect: cannot assign requested address","time":"2020-12-19T22:02:42Z"}

Note: as expected, everything is running on the exact same machine.

@Jae Thanks for reaching out! Please find the documentation for Gitea oAuth configuration :https://docs.drone.io/server/provider/gitea/
I hope you had followed the instruction listed there but it looks like connectivity issue from Drone server (ci.jae.moe) to your gittea server(git.jae.moe). Can you follow the steps listed in the ticket : Drone + Gitea + NGINX = OAuth cannot exchange code and let us know if it helps or if need any additional help!

Regards,
Harness Support Team

Greetings.
The problem isn’t in the oAuth configuration it’s just the error Login Failed. Post "https://git.jae.moe/login/oauth/access_token": dial tcp [2a01:e0a:14f:5230:fabc:12ff:fe31:97fe]:443: connect: cannot assign requested address and most particulary connect: cannot assign requested address that bugs me out.
What does it means?
The oAuth configuration there is as described in the official documentation.