diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 33 |
1 files changed, 16 insertions, 17 deletions
@@ -1,31 +1,30 @@ # Proxy -Proxy denying connections according to the given configuration. +Proxy denying connections depending on the time. ## Getting started -```bash -nix-shell --run "cargo-watch -x run -- --config config.dhall" -``` - -## Example configuration +Create `config.dhall`: ```dhall [ { - from = "00:00", - to = "23:59", - hosts = [ - "facebook.com", - "gstatic.com" - ] - }, - { - from = "19:00", - to = "17:00", + times = [ + { + days = "Monday-Sunday", + from = "00:00", + to = "23:59" + } + ], hosts = [ - "youtube.com" + "facebook.com" ] } ] ``` + +Then, run with: + +```bash +nix-shell --run 'cargo-watch -x "run -- --config config.dhall"' +``` |