Baseurl and letsencrypt?

I have lets encrypt set up like
“email”: “[email protected]”,
“domains”: [
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”
and in my config file:

api_password: !secret api_pass
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  server_port: 443
  ip_ban_enabled: True
  login_attempts_threshold: 2

But i can still log in with my external ip addresse and my internal ipadresse instead of domain name
I cannot figure out why