anatol / pacoloco

Caching proxy server for Arch Linux pacman
MIT License
216 stars 30 forks source link

Clarify use of http_proxy #76

Closed lquidfire closed 1 year ago

lquidfire commented 1 year ago

The http_proxy config was not obvious to me (Cf. Issue 75), so I created this PR in the hope that it would clarify the use of the http_proxy config.

This PR also changes the cron configuration from having 7 items (currently: "cron: 0 0 3 ") to 5 (cron: 0 3 *), as I think cron can only take 5 arguments. (reverted this, because the golang library in use here requires 7 expressions)

anatol commented 1 year ago

As of the cron change - we use golang library that handles cron like scheduling. github.com/gorhill/cronexpr

It might have a slightly different expression format. But one needs to check it.

Edit: indeed the library handles 5 or 6 or 7 elements expression. Thus previous expression is fine.

lquidfire commented 1 year ago

I reverted the changes to the cron expressions in the Readme.md and yaml sample file. Thank you for pointing out my oversight (I should have checked the docs!).