You first have to create the site and let it generate the ssl or skip the nginx conf and ssl if you have wildcard subdomain ssl enabled.
ee site create domain.tld --type=html --ssl=le
Then edit the new domain.tld’s nginx conf, I don’t remember exactly where it was now but I think It was somewhere in
/opt/easyengine/services/nginx? Just dig around. Then reload the site:
ee site reload domain.tld --nginx
This might be an issue because jwilder’s nginx-proxy, which EEv4 uses, dynamically overwrites the main .conf for all of your sites. Well just play around with it.
With Traefik, it’s more easier to proxy things and don’t have to edit a file that will maybe get overwritten. Just 5 lines in the .yml file and Traefik will detect it.
labels: - "traefik.frontend.rule=Host:domain.tld" - "traefik.port=80" networks: - proxy