Dgraph-ratel unable to connect to dgraph server on localhost

hi,

i tried to add tls via caddy to proxy rest call to port 8080.
but when i use Ratel on this address
https://localhost:8080

it fails to connect.
it works well when i did not use caddy to proxy via https (tls self signed)

and also, i even tried to add login for httpbasic auth, and Ratel seems to remove authentication from the url.

example:

http://username:password@ip:8080/

becomes

http://ip:8080/

is there a way to make this work?