How get multiple sub domain as Sans

I'm trying to add mailu to my traefik server. In order to get a SSL, I need to generate a certificate for my main domain and all my subdomain as Sans. The mailu tutorial isn't up to date, their example is for 1.7 version :

    main = "" # this is the same as $TRAEFIK_DOMAIN!
    sans = ["", "", ""]

I tried to add labels on my docker compose file like this :

      - "[0]"
      - "[0]"
      - "[1]"

But Traefik didn't generate properly my certificate. It put only sub2 domain with the main one.
Does someone have an idea to solve this? Thank's in advance.

1 Like

Almost there:

      - "[0]"
      - "[0],"


Huge thanks to you !