aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: d047eb97381af604996b55014af66e8c5d42759a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Proxy

Proxy denying connections depending on the time.

## Getting started

Create `config.dhall`:

```dhall
[
  {
    times = [
      {
        days = "Monday-Sunday",
        from = "00:00",
        to = "23:59"
      }
    ],
    hosts = [
      "facebook.com"
    ]
  }
]
```

Then, run with:

```bash
nix-shell --run 'cargo-watch -x "run -- --config config.dhall"'
```