zuavra / nginx-ip-whitelister

Backend for ngx_http_auth_request_module that whitelists remote IP address if a key is presented in URL.
MIT License
41 stars 3 forks source link

Reduce dependencies to minimum. #12

Closed zuavra closed 11 months ago

zuavra commented 11 months ago

Reduce the number of packages this project depends on, in order to keep it small and manageable.

zuavra commented 11 months ago

Dependencies have been cut down to 7:

:notebook_with_decorative_cover: External web frameworks were eliminated only after writing my own barebones library (see lib/stupid_http.js). pure-http was a zero-dependency contender but its error middleware logic is unfortunately faulty. The next-most lightweight contender was connect which still includes more functionality than I will ever need.