ddev icon indicating copy to clipboard operation
ddev copied to clipboard

Have a way to make an additional hostname a subdomain without re-typing the project name

Open hanoii opened this issue 8 months ago • 6 comments

I use additional_hostnames a lot, and everytime I set up things as subdomains of the project name.

i.e.

name: example
additional_hostnames:
    - 'something.example'
    - 'else.example'
    - '*.example'

I would love to be able to avoid the example mostly so that I can bundle some of this on an add-on where I don't know the project name.

I am not sure what's best here. I thought of using a simple go template approach with a defined set of variables, like {{ . ProjectName }} or something like that. Another option is to allow for some custom STRING, like $DDEV_PROJECT, but I think using something that looks like an env var is confusing.

hanoii avatar Oct 31 '23 02:10 hanoii