aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 9a7445a4b07016358190236ea15e357e6691d010 (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
31
# Proxy

Proxy denying connections according to the given configuration.

## Getting started

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

## Example configuration

```dhall
[
  {
    from = "00:00",
    to = "23:59",
    hosts = [
      "facebook.com",
      "gstatic.com"
    ]
  },
  {
    from = "19:00",
    to = "17:00",
    hosts = [
      "youtube.com"
    ]
  }
]
```