No description
Find a file
2025-12-06 17:58:18 +01:00
secrets enable draupnir 2025-12-06 11:06:25 +01:00
services downgrade postgres to 16 2025-12-06 17:58:18 +01:00
.editorconfig foo 2025-12-02 19:36:46 +01:00
.gitignore baz 2025-12-02 20:07:30 +01:00
configuration.nix fix typo 2025-12-05 21:37:10 +01:00
flake.lock polish 2025-12-04 14:58:06 +01:00
flake.nix add secret 2025-12-06 11:10:33 +01:00
README.md Update README.md 2025-12-05 22:11:27 +01:00

Tarball

nix build .#nixosConfigurations.matrix.config.system.build.image

HTTP

Configure berlin.ccc.de web server to send federation traffic to the matrix server:

server {
  hostname berlin.ccc.de;
  location = /.well-known/matrix/server {
    default_type application/json;
    add_header Access-Control-Allow-Origin "*";
    return 200 '{"m.server":"matrix.berlin.ccc.de:443"}';
  }
  location = /.well-known/matrix/client {
    default_type application/json;
    add_header Access-Control-Allow-Origin "*";
    return 200 '{"m.homeserver": {"base_url": "https://matrix.berlin.ccc.de"}}';
  }
}

DNS

_matrix-fed._tcp.berlin.ccc.de.  IN SRV    10 0 443 matrix.berlin.ccc.de.
_matrix-fed._tcp.berlin.ccc.de.  IN SRV    10 0 443 matrix.berlin.ccc.de.
matrix.berlin.ccc.de.            IN A      195.160.173.25
matrix.berlin.ccc.de.            IN AAAA   2001:678:760:cccb::25
matrix.berlin.ccc.de.            IN CAA    0 issue "letsencrypt.org;validationmethods=http-01"
matrix.berlin.ccc.de.            IN CAA    0 iodef "mailto:caa@xengi.de"
matrix.berlin.ccc.de.            IN SSHFP  1 1 f40e117b002957939a454070adbbafe42d6f5842
matrix.berlin.ccc.de.            IN SSHFP  1 2 8ba0c605a365ef5369e91c531dd86fabfe4ce6dbd5e8280093ec2672d67c329b
matrix.berlin.ccc.de.            IN SSHFP  4 1 62d10fa57f8a1aa7469cd9b00621e4ce89261d91
matrix.berlin.ccc.de.            IN SSHFP  4 2 ca80a6685984da140ac850e4951fa31e70b616e87f62f46437af3bfd215af887

Bots

register_new_matrix_user \
    -c homeserver.yaml https://matrix.berlin.ccc.de \
    --user_domain berlin.ccc.de \
    --user <YOUR_BOT> \
    --password <YOUR_PASSWORD>

Draupnir

Remove rate limit for account:

curl -X DELETE https://matrix.berlin.ccc.de/_synapse/admin/v1/users/@admin:berlin.ccc.de/override_ratelimit

Set rate limit for account:

curl -X POST -d '{"messages_per_second":0,"burst_count":0}' https://matrix.berlin.ccc.de/_synapse/admin/v1/users/@admin:berlin.ccc.de/override_ratelimit