Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Define domains for caddy and add them to /etc/hosts #227

Closed
jochenmanz opened this issue Dec 21, 2022 · 6 comments · Fixed by #249
Closed

Feature: Define domains for caddy and add them to /etc/hosts #227

jochenmanz opened this issue Dec 21, 2022 · 6 comments · Fixed by #249
Labels
enhancement New feature or request

Comments

@jochenmanz
Copy link
Contributor

Describe the Feature
It would be great to be able to use domain names as virtual hosts in caddy. Devenv could handle the /etc/hosts changes (or dnsmasq configuration).

@jochenmanz jochenmanz added the bug Something isn't working label Dec 21, 2022
@domenkozar domenkozar added enhancement New feature or request and removed bug Something isn't working labels Dec 22, 2022
@shyim
Copy link
Contributor

shyim commented Dec 23, 2022

@blaggacao do you want to make a PR to devenv if you are already familar with that

@domenkozar
Copy link
Member

We need a solution that works for macOS and linux and ideally is scoped to the environment.

@domenkozar
Copy link
Member

@blaggacao
Copy link
Contributor

blaggacao commented Dec 23, 2022

It has been literally years. And we're not using devenv (yet). But considering. Since divnix/std is deeply integrated with numtide/devshell switching isn't going to be cheap or straightforward, either.

Iirc, during all the time past there where also ideas about a HOSTFILE variable to define project hosts files.

It might be at least worth it to do a quick research to see where these ideas are currently at (and if they have sufficiently progressed).

@shyim
Copy link
Contributor

shyim commented Dec 24, 2022

I guess this would require some kind of pre- and post-scripts to devenv up to be able to execute the hostctl 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants