| 1 | #!/bin/bash |
| 2 | set -e |
| 3 | export SYNAPSE_SERVER_NAME=matrix-sdk.rs |
| 4 | export SYNAPSE_REPORT_STATS=no |
| 5 | echo " ====== Generating config ====== " |
| 6 | /start.py generate |
| 7 | |
| 8 | # Courtesy of https://github.com/michaelkaye/setup-matrix-synapse/blob/e2067245b5265640f94d310fc79a1d388cc70452/create.js#L99 |
| 9 | echo " ====== Patching for CI ====== " |
| 10 | echo """ |
| 11 | enable_registration: true |
| 12 | enable_registration_without_verification: true |
| 13 | |
| 14 | rc_message: |
| 15 | per_second: 1000 |
| 16 | burst_count: 1000 |
| 17 | |
| 18 | rc_registration: |
| 19 | per_second: 1000 |
| 20 | burst_count: 1000 |
| 21 | |
| 22 | rc_login: |
| 23 | address: |
| 24 | per_second: 1000 |
| 25 | burst_count: 1000 |
| 26 | account: |
| 27 | per_second: 1000 |
| 28 | burst_count: 1000 |
| 29 | failed_attempts: |
| 30 | per_second: 1000 |
| 31 | burst_count: 1000 |
| 32 | |
| 33 | rc_admin_redaction: |
| 34 | per_second: 1000 |
| 35 | burst_count: 1000 |
| 36 | |
| 37 | rc_joins: |
| 38 | local: |
| 39 | per_second: 1000 |
| 40 | burst_count: 1000 |
| 41 | remote: |
| 42 | per_second: 1000 |
| 43 | burst_count: 1000 |
| 44 | |
| 45 | rc_3pid_validation: |
| 46 | per_second: 1000 |
| 47 | burst_count: 1000 |
| 48 | |
| 49 | rc_invites: |
| 50 | per_room: |
| 51 | per_second: 1000 |
| 52 | burst_count: 1000 |
| 53 | per_user: |
| 54 | per_second: 1000 |
| 55 | burst_count: 1000 |
| 56 | per_issuer: |
| 57 | per_second: 1000 |
| 58 | burst_count: 1000 |
| 59 | |
| 60 | experimental_features: |
| 61 | msc3266_enabled: true |
| 62 | """ >> /data/homeserver.yaml |
| 63 | |
| 64 | echo " ====== Starting server with: ====== " |
| 65 | cat /data/homeserver.yaml |
| 66 | echo " ====== STARTING ====== " |
| 67 | /start.py run |