diff options
author | Joris | 2020-09-06 16:01:33 +0200 |
---|---|---|
committer | Joris | 2020-09-06 16:01:33 +0200 |
commit | 84e5a1f91517565f9da6078527fec00f753ab379 (patch) | |
tree | 3bf73624645d2b9d64198f44109bfaa4357354c2 /README.md | |
parent | 767c66111b3cd424e48dc0b9a6a668d38be1e1a7 (diff) | |
download | proxy-84e5a1f91517565f9da6078527fec00f753ab379.tar.gz proxy-84e5a1f91517565f9da6078527fec00f753ab379.tar.bz2 proxy-84e5a1f91517565f9da6078527fec00f753ab379.zip |
Indicate days to access blocks
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"' +``` |