Debian Codegraph @

mtxclient/.ci/adjust-config.sh

raw symbols SCIP
1 #!/bin/bash
2
3 CMD=""
4
5 if [[ ! -z $TRAVIS_OS_NAME ]]; then
6 CMD="sudo"
7 fi
8
9 (
10 cat <<HEREDOC
11
12 server_name: "localhost"
13 pid_file: /data/homeserver.pid
14 listeners:
15 - port: 8008
16 tls: true
17 type: http
18 x_forwarded: true
19 resources:
20 - names: [client, federation]
21 compress: false
22 - port: 8009
23 tls: false
24 type: http
25 x_forwarded: true
26 resources:
27 - names: [client, federation]
28 compress: false
29 database:
30 name: sqlite3
31 args:
32 database: /data/homeserver.db
33 log_config: "/data/localhost.log.config"
34 media_store_path: /data/media_store
35 registration_shared_secret: "&=bz^dG2c34^NHZYMidt7crX~ZheXN0r1dV02uKapb9uxmktR:"
36 report_stats: false
37 macaroon_secret_key: "Ea#Ny0z,r=kv&2.H47au0QSsL&QDjpZqxYX0NcUe9EKsX~Eyrz"
38 form_secret: ";,kjZhkoUnRLbUq@H21PJcX#T+p&MuNi4O9qbH*gZk2+84ree+"
39 signing_key_path: "/data/localhost.signing.key"
40 trusted_key_servers: []
41
42
43 enable_registration: true
44 enable_registration_without_verification: true
45
46 room_list_publication_rules:
47 - action: allow
48
49 tls_certificate_path: "/data/localhost.tls.crt"
50 tls_private_key_path: "/data/localhost.tls.key"
51
52 rc_message:
53 per_second: 10000
54 burst_count: 100000
55
56 rc_registration:
57 per_second: 10000
58 burst_count: 30000
59
60 rc_login:
61 address:
62 per_second: 10000
63 burst_count: 30000
64 account:
65 per_second: 10000
66 burst_count: 30000
67 failed_attempts:
68 per_second: 10000
69 burst_count: 30000
70
71 rc_admin_redaction:
72 per_second: 1000
73 burst_count: 5000
74
75 rc_joins:
76 local:
77 per_second: 10000
78 burst_count: 100000
79 remote:
80 per_second: 10000
81 burst_count: 100000
82
83 rc_presence:
84 per_user:
85 per_second: 10000
86 burst_count: 100000
87
88 experimental_features:
89 msc3266_enabled: true
90
91
92 HEREDOC
93 ) | $CMD tee data/homeserver.yaml
94
95 $CMD openssl req -x509 -newkey rsa:4096 -keyout data/localhost.tls.key -out data/localhost.tls.crt -days 365 -subj '/CN=localhost' -nodes
96
97 $CMD chmod 0777 data/localhost.tls.crt
98 $CMD chmod 0777 data/localhost.tls.key