Thanks @george, I know these can be a small can of worms. Maybe domains could be added but only if they redirect to the ‘master’ domain via htaccess? That way cookies etc. will only nee to be served for one domain but would allow the most common www/non-www issue to be resolved.
For now, as a workaround, I added:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.mydomain.com [NC]
RewriteRule ^(.*)$ https://mydomain.com/$1 [R=301]
to the htaccess file and then altered the docker-compose.yml file (under .wappler/targets/targetname) from:
traefik.http.routers.dockername__targetname_web-secure.rule=Host('mydomain.com')
to:
traefik.http.routers.dockername__targetname_web-secure.rule=Host('www.mydomain.com') || Host('mydomain.com')
Use back ticks around the host names (they just won’t show on posts)
All traffic is now routed to the non-www version and secured with a valid certificate.
This has worked for me so far but I haven’t tried changing docker settings etc. so may well get overwritten.