forked from hacc/haccfiles
synapse: cleaned up config
This commit is contained in:
parent
42e1d2e990
commit
1b58bd0f7b
1 changed files with 14 additions and 30 deletions
|
@ -84,6 +84,12 @@
|
|||
services.matrix-synapse = {
|
||||
enable = true;
|
||||
server_name = "hacc.space";
|
||||
public_baseurl = "https://matrix.hacc.space";
|
||||
enable_registration = true;
|
||||
allow_guest_access = true;
|
||||
max_upload_size = "25M";
|
||||
max_image_pixels = "25M";
|
||||
dynamic_thumbnails = true;
|
||||
extraConfigFiles = [ "/var/lib/matrix-synapse/secrets.yml" ];
|
||||
extraConfig = ''
|
||||
public_baseurl: https://matrix.hacc.space
|
||||
|
@ -97,8 +103,6 @@
|
|||
client_base_url: "https://element.hacc.space"
|
||||
invite_client_location: "https://element.hacc.space"
|
||||
|
||||
enable_registration = true;
|
||||
allow_guest_access = true;
|
||||
admin_contact: 'mailto:admin@hacc.space'
|
||||
web_client_location: https://element.hacc.space/
|
||||
use_presence: false # uses lots of CPU for bacially nothing
|
||||
|
@ -106,9 +110,6 @@
|
|||
allow_public_rooms_without_auth: true # public rooms should be public. can be changed if too much spam occurs
|
||||
default_room_version: "6"
|
||||
|
||||
limit_usage_by_mau: false # disables max userer
|
||||
mau_stats_only: false
|
||||
|
||||
redaction_retention_period: 3d # ich hab keine Ahnung, was das tut, aber weniger klingt besser
|
||||
user_ips_max_age: 1d # ich will das Zeug gar nicht qq
|
||||
|
||||
|
@ -129,20 +130,10 @@
|
|||
- shortest_max_lifetime: 1w
|
||||
interval: 1d
|
||||
|
||||
|
||||
max_upload_size: 50M
|
||||
max_image_pixels: 24M
|
||||
url_preview_enabled: false # disabled, can leak urls of encrypted communication
|
||||
|
||||
|
||||
auto_join_rooms:
|
||||
- "#lobby:hacc.space"
|
||||
auto_join_rooms_for_guests: true
|
||||
|
||||
|
||||
enable_metrics: false
|
||||
report_stats: false
|
||||
|
||||
password_config:
|
||||
policy:
|
||||
enabled: true
|
||||
|
@ -162,7 +153,6 @@
|
|||
search_all_users: false
|
||||
prefer_local_users: true
|
||||
|
||||
|
||||
# User Consent configuration
|
||||
#
|
||||
# for detailed instructions, see
|
||||
|
@ -212,12 +202,6 @@
|
|||
# require_at_registration: false
|
||||
# policy_name: Privacy Policy
|
||||
#
|
||||
|
||||
stats:
|
||||
enabled: true # disabling this apparently breaks the room directory
|
||||
bucket_size: 1w
|
||||
|
||||
";
|
||||
'';
|
||||
listeners = [ {
|
||||
port = 8008;
|
||||
|
|
Loading…
Reference in a new issue