dokku / dokku-http-auth

dokku plugin that gives the ability to manage HTTP basic auth for an application
MIT License
84 stars 20 forks source link

refactor: use wrapper functions to restart nginx directly vs rebuilding the entire config #13

Closed josegonzalez closed 2 years ago

josegonzalez commented 2 years ago

A config build takes ~10 seconds due to the various config:get calls, so we can avoid this by just validating/restarting nginx directly.

This will break any custom plugin that gets config from this plugin for http auth settings, but since I don't know of those plugins, thats probably okay.