summaryrefslogtreecommitdiffstats
path: root/server/config/defaults.hjson
diff options
context:
space:
mode:
authorFelix Ableitner <me@nutomic.com>2020-03-18 22:09:00 +0100
committerFelix Ableitner <me@nutomic.com>2020-03-18 22:09:00 +0100
commit390b204272e06a1b880ea63ae4f12183fb8dc555 (patch)
tree7e97de25afe43d3ad21e178a2d679224b381d94b /server/config/defaults.hjson
parentbd030470b1f488f40b739bbbcbd281c5234ec62c (diff)
Rewrite federation settings
Diffstat (limited to 'server/config/defaults.hjson')
-rw-r--r--server/config/defaults.hjson14
1 files changed, 9 insertions, 5 deletions
diff --git a/server/config/defaults.hjson b/server/config/defaults.hjson
index 7eda46ec..e048ced8 100644
--- a/server/config/defaults.hjson
+++ b/server/config/defaults.hjson
@@ -24,11 +24,6 @@
jwt_secret: "changeme"
# The dir for the front end
front_end_dir: "../ui/dist"
- # whether to enable activitypub federation. this feature is in alpha, do not enable in production.
- federation_enabled: false
- // another instance to federate with. this should be a list, but it seems like lists cant be set from environment
- // https://github.com/mehcode/config-rs/issues/117
- federated_instance: null
# rate limits for various user actions, by user ip
rate_limit: {
# maximum number of messages created in interval
@@ -44,6 +39,15 @@
# interval length for registration limit
register_per_second: 3600
}
+ # settings related to activitypub federation
+ federation: {
+ # whether to enable activitypub federation. this feature is in alpha, do not enable in production.
+ enabled: false
+ # comma seperated list of instances to follow
+ followed_instances: ""
+ # whether tls is required for activitypub. only disable this for debugging, never for producion.
+ tls_enabled: true
+ }
# # email sending configuration
# email: {
# # hostname of the smtp server