Drone with gitea, unable to connect to drone on port 443


problem: unable to connect to drone on port 443

  1. i tried a new deploy of drone for gitea, following the documentation

  2. after installing drone i also deployed a runner, the runner is online and connected to the drone container.

  3. now we browse to https://drone.ourlocaldomain.ourId and we get connection refused. if we browse with http instead of https we are met with drone welcome landing page

  4. we verify the gitea oath key in drone following the wizard, after this we are redirected to https://drone.ourlocaldomain.ourtld which meets connection refused, if we rewrite this url to http:// the drone page loads but we get “http: named cookie not present” error.

i believe the problem lies within the 443 unavailability.

Looking at the docker container host netstat: both ports are listening, this is a fresh ubuntu ser ver 20.04 host with no other services running on these ports before docker deploy.

looking at tcpdump in docker0 nic we can see that client tcp handshake traffic reaches container, but container replies with tcp reset:

14:13:37.989271 IP .62029 > Flags [S], seq 3121427575, win 65535, options [mss 1310,nop,wscale 6,nop,nop,TS val 1118774138 ecr 0,sackOK,eol], length 0

14:13:37.989348 IP > .62029: Flags [R.], seq 0, ack 3121427576, win 0, length 0

drone and runner build(copied from documentation):

sudo docker run \
  --volume=/var/lib/drone:/data \
  --env=DRONE_GITEA_SERVER=https://<our_gitea_uri> \
  --env=DRONE_GITEA_CLIENT_ID=<our_client_id> \
  --env=DRONE_GITEA_CLIENT_SECRET=<our_client_secret>= \
  --env=DRONE_RPC_SECRET=<our_rpc_secret> \
  --env=DRONE_SERVER_HOST=<our_domain> \
  --env=DRONE_SERVER_PROTO=https \
  --publish=80:80 \
  --publish=443:443 \
  --restart=always \
  --detach=true \
  --name=drone \

sudo docker run --detach \
  --volume=/var/run/docker.sock:/var/run/docker.sock \
  --env=DRONE_RPC_PROTO=http \
  --env=DRONE_RPC_HOST=<our_rpc_host> \
  --env=DRONE_RPC_SECRET=<our_rpc_secret> \
  --env=DRONE_RUNNER_NAME=my-first-runner \
  --publish=3000:3000 \
  --restart=always \
  --name=runner \