Duckdns + nginx -> third level domain

Hi everybody,

I just discovered how to use nginx to encrypt internet traffic to my homeassistant and I am amazed how simple this turned out to be!

I was wondering how can I use the homeassistant nginx add-on to configure third level domains? My homeassistant is running on https://mydomain.duckdns.org and I would like to add other local machines to third level domains, e.g.

I saw in this thread that in a normal nginx configuration, it would be like this:

server {
  listen 443 ssl default_server;
  listen [::]:443 ssl default_server;
  server_name gogs.mydomain.duckdns.org;
  # locations etc
  # what goes here?
}

Thanks!
Sam