Internal URL in general settings/Duck DNS

1- The error message because of installing Duck DNS ssl when running the automation to play camera on media player tv: “Unable to determine Home Assistant URL to send to device. Configure internal and external URL in general settings”.

2- Need internal login url without the https to use media player/play media in automation.

3- Same time I need to keep my external login to use Duck DNS https ssl certification from outside my local network.

4- Is this option available/possible at home assistant and how to do it please.