-
Notifications
You must be signed in to change notification settings - Fork 19
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
Prevent Sites Autostart on domain visit #41
Comments
Hi @crisward, thank you for opening up this issue. There currently doesn't exist any mechanism to disable the autostart feature; however, I don't think it's unreasonable of a request to ask for. I would like to figure out the best way possible to define this mechanism and I was thinking to start with a global configuration variable. Turning this variable on for the whole setup, it will disable the autostart feature when anyone tries to access a proxy that isn't running it will return a 502. How does this sound and does it fit your use case? I am open to accepting pull requests if you would like to look into it and have time! If not, I'll add it to my backlog 😄 |
Had a quick look at this. It looks like each request goes via the steps of
In the following places
However it looks like the
Not 100% sure of the best way of doing this. It feels like we could create another method / middleware on group and use that to decide if we should start or not. This could check the config and throw an next(err) if autostart is false. Sound reasonable? |
First, thanks for maintaining this tool. Been using hotel for years and your battle against code rot is very much appreciated.
I expose my chalet setup via a reverse proxy, so clients can see work in progress. However I sometimes find they've restarted their dev site just by going to the provided domain. I obviously want to keep my dev machine running as few sites as possible, so it'd be good to disable this behaviour.
Is this something you would implement, or accept a pull request for? (unless this is already possible, but I missed it from the docs).
Thanks.
The text was updated successfully, but these errors were encountered: