Gitea: cannot authenticate user

I am unable to login to drone using my gitea username/password. I get the error below.

{“level”:“warn”,“ip”:“”,“path”:"/login",“method”:“POST”,“request_id”:“bfmfdhv5i1r8mfqi3b5g”,“error”:“Get https://localhost:3000/api/v1/users/gitadmin/tokens: dial tcp connect: connection refused”,“time”:“2018-11-15T04:32:07Z”,“message”:“cannot authenticate user”}

this is because your gitea address is which is not accessible outside of the drone container, since containers have isolated network space.

Works after changing the ip address to a Thank you very much.