a mini social media app for small communities
1dev_mode = false
2static_path = 'src/static'
3
4instance = {
5 name = 'beep'
6 welcome = 'welcome to beep!'
7
8 default_theme = 'https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css'
9 allow_changing_theme = true
10
11 // instance version
12 version = '2025.01'
13
14 // set this to '' if your instance is closed source (twt)
15 source = 'https://github.com/emmathemartian/beep'
16}
17
18http = {
19 port = 8008
20}
21
22postgres = {
23 host = 'localhost'
24 port = 5432
25 user = 'beep'
26 password = 'beep'
27 db = 'beep'
28}
29
30post = {
31 title_min_len = 1
32 title_max_len = 50
33 title_pattern = '.*'
34
35 body_min_len = 1
36 body_max_len = 1000
37 body_pattern = '.*'
38}
39
40user = {
41 username_min_len = 3
42 username_max_len = 20
43 username_pattern = '[a-z0-9_.]+'
44
45 nickname_min_len = 1
46 nickname_max_len = 20
47 nickname_pattern = '.*'
48
49 password_min_len = 12
50 password_max_len = 72
51 password_pattern = '.+'
52
53 pronouns_min_len = 0
54 pronouns_max_len = 30
55 pronouns_pattern = '.*'
56
57 bio_min_len = 0
58 bio_max_len = 200
59 bio_pattern = '.*'
60}
61
62welcome = {
63 summary = 'welcome!'
64 body = 'hello %s and welcome to beep! i hope you enjoy your stay here :D'
65}