From 5b30e6eb0cb6bfd71878fb2def5b191513a15462 Mon Sep 17 00:00:00 2001 From: "Ricardo (XenGi) Band" Date: Wed, 2 Dec 2026 11:52:57 +0100 Subject: [PATCH] update readme --- README.matrix.md | 13 ++++++++++--- README.postgres.md | 8 ++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/README.matrix.md b/README.matrix.md index 6ae61e4..e82c396 100644 --- a/README.matrix.md +++ b/README.matrix.md @@ -9,7 +9,6 @@ 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 { @@ -31,13 +30,21 @@ matrix.berlin.ccc.de. IN CAA 0 issue "letsencrypt.org;validationme matrix.berlin.ccc.de. IN CAA 0 iodef "mailto:admin@berlin.ccc.de" ``` -## Bots +## Accounts + +```bash +matrix-synapse-register_new_matrix_user \ + -u \ + --no-admin +``` + +it wraps this: ```bash register_new_matrix_user \ -c homeserver.yaml https://matrix.berlin.ccc.de \ --user_domain berlin.ccc.de \ - --user \ + --user \ --password ``` diff --git a/README.postgres.md b/README.postgres.md index abf5a54..1322fff 100644 --- a/README.postgres.md +++ b/README.postgres.md @@ -7,9 +7,9 @@ _here 16 => 17_ 1. Stop services that use postgres or cut connection by change postgres port 2. Login as postgres user ```shell -sudo -su postgres -old=16 +su postgres cd /var/lib/postgresql/ +old=16 pg_old=$(nix-build --no-out-link -A postgresql_${old:?} '') pg_new=$(nix-build --no-out-link -A postgresql_$((old+1)) '') ``` @@ -42,13 +42,13 @@ $pg_new/bin/pg_upgrade \ ``` 7. Start the new Postgres ```shell -# Change 'services.postgres.packages = pkgs.postgresql_17;' in services/postgres.nix +# Change 'services.postgres.packages = pkgs.postgresql_17;' in `hosts/sql/postgres.nix` nixos-rebuild switch ``` Cleanup (after a few days): ```shell -sudo -su postgres +su postgres vacuumdb --all --analyze-in-stages cd /var/lib/postgresql/ ./delete_old_cluster.sh