Domain Matching
Configure domain matching for GoDoxy
An alias is either a short alias or an FQDN (Fully Qualified Domain Name) alias.
Docker
By default, the container name is used as the short alias unless proxy.aliases is set.
General
Without match_domains
If match_domains is not set in config.yml, below will match route with short alias app:
app.anydomain.comapp.*.anydomain.com- ...
Below will match route with FQDN alias app.example.com:
app.example.comapp.example.com.*
Using match_domains
Use this to restrict which base domains are valid.
With match_domains in config.yml:
match_domains:
- example.com
- example.orgThen a short alias app can be accessed only at:
app.example.comapp.example.org
And a route with FQDN alias app.example.com can be accessed at:
app.example.com
Use case example for match_domains
Given your main domain is my.app:
-
Add
my.apptoautocert.domainsandmatch_domainsinconfig.yml.autocert: domains: - my.app match_domains: - my.app -
Use short aliases like
adguardandsonarrwhen you want them accessible under your main domain.services: adguard: # adguard.my.app ... labels: proxy.aliases: adguard sonarr: # sonarr.my.app ... labels: proxy.aliases: sonarr -
Use FQDN aliases like
adguard.other.appandsonarr.other.appwhen you want them accessible under other domains.# docker compose services: adguard: ... labels: proxy.aliases: adguard.other.app sonarr: ... labels: proxy.aliases: sonarr.other.app # config.yml autocert: domains: - my.app