Re:Nginx Unit – Universal web app server
by hamandcheese on Sunday September 10, 2023 @03:59PM
(#37459413)
To me this is identical - mutable state is mutable state, whether it starts on disk first makes no difference.
There is a slight difference to me as having another service run (the API) is an additional attack vector to worry about from a security perspective.
I would also say it's easier to enforce good "IaC hygiene" when the configs are managed via configuration files. They can go through a code review process, deployed via existing config management systems etc.
Re:Nginx Unit – Universal web app server
by pstuart on Monday September 11, 2023 @12:45AM
(#37462981)
Nginx can reload configs on HUPs -- https://docs.nginx.com/nginx/admin-guide/basic-functionality...
I suppose arguably that becomes a bit trickier for containers, so perhaps that's why you'd want to configure via an API?