aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md33
1 files changed, 16 insertions, 17 deletions
diff --git a/README.md b/README.md
index 9a7445a..d047eb9 100644
--- a/README.md
+++ b/README.md
@@ -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"'
+```