Called from outside via Duckdns and locally via IP Address?

How can I set in HA… called from outside via Duckdns and locally via IP address? At the moment everything is talking about Duckdns.

duckdns:
domain: xxxxxxxx.duckdns.org
access_token: xxxxxxxxxxxxxxxxx
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

Your companion apps should have the option to distinguish between internal and external connection in the settings pane.
The issue here is to remember that SSL connections require certificates and public certificates only work with domain names, so your local connection to the IP address will be only http and not https, unless you set up your own CA and add the CA to all your devices.