4 ms·
>This is the solution I've used and it works pretty well. Just make sure consul-template never writes bad config as that will stop everything reloading. That'
by poooogles 8y ago
>This is the solution I've used and it works pretty well.
Just make sure consul-template never writes bad config as that will stop everything reloading. That's bit me a couple of times.
- dewey 8y agoCan't you just run a nginx -t to run the config test and see if it passes before you reload?
- poooogles 8y agonginx does that already. The problem is it'll stop you being able to reload configuration on other bits of config. Once there's a config error nothing can reload. Limited blast radius don't really apply when it comes to nginx config errors (which given its origins is understandable). One error in one bit of config and it all stops.