Wildcard Domain for CODE Server Docker Image

I have multiple Nextcloud instances all under *.drtech.cc.

Currently I have one nextcloud instance hosted at drive.drtech.cc, and a Collabora CODE Server having
domain=drive\.drtech\.cc
everything works fine, documents are loaded and edited flawlessly.

Iā€™d like to use this single Collabora CODE server hosted at docs.drtech.cc to serve online editing capabilities to the multiple NextCloud instances, however if I try to set
domain=*\.drtech\.cc
connectivity breaks and no single nextcloud instance is able to communicate with the CODE server.

How do I put wildcards in the environment variable domain ?

Currently running as:
docker run -t -d -p 9980:9980 -e "domain=drive\\.drtech\\.cc" -e "username=admin" -e "password=password" -e "extra_params=--o:ssl.enable=false --o:ssl.termination=true" --restart always collabora/code

domain is a Regex string which configures a host attribute in /etc/coolwsd/coolwsd.xml inside the Docker container. For instance I use it like this: domain=(domain1\\.tld|domain2\\.tld). You may use domain=.*\\.drtech\\.cc as well.

1 Like