tjcsl / director

Director (web3)
https://director.tjhsst.edu
MIT License
11 stars 5 forks source link

Add method for users to make changes to the nginx configuration #17

Open ezwang opened 7 years ago

ezwang commented 7 years ago

Allow users to use certain nginx commands to change variables such as the max upload size, serving from static directories, etc.

ezwang commented 7 years ago

This could be done by either making a parser to validate a user submitted nginx configuration, or making a model system for simple operations (static folders, redirects, etc.) and writing that out to a nginx configuration.

The latter option would be better if any changes need to be made to the default configuration, but would provide less flexibility for users.