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

nginx service #38

Open
6 of 14 tasks
djthorpe opened this issue Nov 28, 2022 · 2 comments · Fixed by #39 or #40
Open
6 of 14 tasks

nginx service #38

djthorpe opened this issue Nov 28, 2022 · 2 comments · Fixed by #39 or #40
Assignees

Comments

@djthorpe
Copy link
Member

djthorpe commented Nov 28, 2022

Implement an nginx service tasks:

  • Start, stop, reload and test configuration
  • Create new configurations, update, enable , disable and delete them
  • Command-line client for control of nginx
  • Add a client which can be used for client-side control
  • Permissions on the TEMP directory need to be 755 rather than 700
  • Permissions on any socket directory need to reflect User and Group in httpserver
  • Add scopes for nginx for permissions
  • Add data (for sockets/pid) and log paths
  • Use a mutex lock to guard against concurrency in various places
  • Add "readonly" property to Template so that it cannot be disabled, enabled, changed or deleted
  • Add template variables for rending a configuration from a text/template
  • Allow PATCH method to write body of enabled configuration
  • Log rotation
  • Check remaining TODO's

The repository link is:
https://github.com/mutablelogic/go-server/tree/v4/pkg/handler/nginx

@djthorpe djthorpe self-assigned this Nov 28, 2022
This was linked to pull requests Nov 29, 2022
@djthorpe
Copy link
Member Author

djthorpe commented Nov 29, 2022

Additional methods:

  • Available() []File - returns available configs as a set of unqiue strings (note we should also provide the state - so enabled or disabled)
  • Enable(keyword string,vars ....any) error - enable a configuration through a template, returns error if test was not successful
  • Disable(keyword string) error - disable a configuration
  • Add(keyword string,data []byte) error - add a configuration (does not enable it)
  • Delete(keyword string) error - delete a configuration, disables it if enabled

@djthorpe
Copy link
Member Author

PR's #40 #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant