aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 6e0e0020a62436d89d5e1bd92c0bc10cb99f4715 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# clog

An attempt to reimplement flog, using the [kore.io](https://kore.io) framework.

# Building

```
make fetch-dependencies
docker compose up
```

# Notes

To run locally comment out the `privsep worker` section in `conf/clog.conf`:

```
# privsep worker {
# 	runas clog
# 
# 	root /var/chroot/
# }
```

Maybe disable `seccomp_tracing` in `conf/clog.conf` if running into problems:

```
seccomp_tracing no
# seccomp_tracing yes
```

## Bootstrapping the database

`psql` and load `db/db.sql`, `db/data.sql` for `db/data.sql`.


## TODO

* Have `tests.py` load and drop database.

Add functions:

get_request_type
render_json_error
render_html_error

insert_post

only do HTTP stuff at the edge.