# Wildcard Domain for CODE Server Docker Image

**URL:** <https://forum.collaboraonline.com/t/wildcard-domain-for-code-server-docker-image/522>\
**Category:** Installation & Configuration\
**Tags:** answered\
**Created:** [August 1, 2021, 6:11pm UTC](https://forum.collaboraonline.com/t/wildcard-domain-for-code-server-docker-image/522 "2021-08-01T18:11:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drtech981](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@drtech981](https://forum.collaboraonline.com/u/drtech981)\
**Post date:** [August 1, 2021, 6:11pm UTC](https://forum.collaboraonline.com/t/wildcard-domain-for-code-server-docker-image/522/1 "2021-08-01T18:11:23Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![bfuerst](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@bfuerst](https://forum.collaboraonline.com/u/bfuerst)\
**Post date:** [January 16, 2022, 12:54pm UTC](https://forum.collaboraonline.com/t/wildcard-domain-for-code-server-docker-image/522/2 "2022-01-16T12:54:19Z")

</div>

`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.
