README.md (1023B)
1 # todo.sr.ht deployment 2 3 Deployment for todo.sr.ht: 4 * https://man.sr.ht/hacking.md 5 6 ## Components 7 * Redict (https://redict.io/docs/install/containers) bundled in this deployment 8 * PostgreSQL database for `todo` service 9 * `meta` neighbor service 10 11 ## Configuration files 12 13 Copy sections from services into meta config.ini. 14 15 > Take the todo.sr.ht specific blocks from config.example.ini and append them 16 > to config.ini. 17 https://emersion.fr/blog/2021/setting-up-sr.ht-for-local-development/ 18 19 ## Mail setup 20 21 https://drewdevault.com/2018/08/05/Local-mail-server.html 22 23 ## Database schema and super user 24 25 ``` 26 # https://git.sr.ht/~sircmpwn/todo.sr.ht/blob/master/schema.sql 27 psql -h postgres.lan -U meta -f todo-schema.sql 28 29 # https://git.sr.ht/~sircmpwn/meta.sr.ht/blob/master/schema.sql 30 psql -h postgres.lan -U meta -f meta-schema.sql 31 meta.sr.ht-manageuser -e root@root.root -p -t ADMIN admin 32 ``` 33 34 ## Key generation 35 36 Generate keys once and store them in Vault: 37 ``` 38 sr.ht-keygen service 39 sr.ht-keygen network 40 sr.ht-keygen webhook 41 ``` 42