-
Notifications
You must be signed in to change notification settings - Fork 4
/
config-sample.toml
132 lines (110 loc) · 2.17 KB
/
config-sample.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name = "commune"
mode = "development"
[app]
domain = "localhost:8989"
public_domain = "localhost:5173"
ssr_domain = ""
shortlink_domain = ""
admin_domain = ""
port = 8989
cookie_name = "commune"
secure_cookie = "something_random"
jwt_key = "some_random_string"
[security]
allowed_origins = ["http://localhost:5173"]
[features]
show_index = true
social = false
space_rooms = true
registration_enabled = true
require_email = false
require_invite_code = false
space_creation_enabled = true
[matrix]
homeserver = "localhost"
public_server = "localhost:8480"
port = 8080
password = "testpassword"
config_file = "/path/to/synapse/homeserver.yaml"
[db]
matrix = "postgres://postgres:postgres@localhost:5432/synapse?sslmode=disable"
[redis]
address = "localhost:6379"
password = "redispass"
sessions_db = 1
posts_db = 2
verification_codes_db = 3
system_db = 4
room_state_db = 5
notifications_db = 6
[search]
enabled = false
host = "http://localhost:7700"
api_key = "meilisearch_master_key"
[cache]
index_events = false
space_events = false
event_replies = false
room_state = true
[authentication]
verify_email = true
disable_registration = false
shared_secret = "synapse_registration_shared_secret"
block_popular_email_providers = false
query_mx_records = false
[privacy]
disable_public = false
[smtp]
domain = ""
account = ""
server = ""
port = 587
username = ""
password = ""
[storage]
bucket_name = ""
region = ""
account_id = ""
endpoint = ""
access_key_id = ""
access_key_secret = ""
[images]
account_id = ""
api_token = ""
[third_party]
youtube_key = ""
[third_party.gif]
enabled = false
service = "" # giphy or tenor
endpoint = ""
api_key = ""
[restrictions.space]
require_verification = false
private_without_verification = false
spaces_per_user = 1000
time_since_last_space = 60
reject_reserved_keywords = false
sender_age = 0 # in days
[restrictions.media]
verified_only = false
max_size = 2 # in MB
[[oauth]]
provider = "google"
enabled = false
client_id = ""
client_secret = ""
[[oauth]]
provider = "github"
enabled = false
client_id = ""
client_secret = ""
[[oauth]]
provider = "discord"
enabled = false
client_id = ""
client_secret = ""
[discovery]
enabled = true
server = ""
key = ""
domain = ""