synapse/_config.sh
author Peter Gervai <grin@grin.hu>
Wed, 08 Mar 2023 22:27:54 +0100
changeset 12 3336c2c14bae
parent 7 6aea45bf033b
permissions -rwxr-xr-x
Add mass_event_remove.sh: simple script redact events collected from the db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
4216bf35912e Init repo; my matrix stuff
Peter Gervai <grin@grin.hu>
parents:
diff changeset
     1
#!/bin/sh
4216bf35912e Init repo; my matrix stuff
Peter Gervai <grin@grin.hu>
parents:
diff changeset
     2
# (cc) Peter 'grin' Gervai, 2020
4216bf35912e Init repo; my matrix stuff
Peter Gervai <grin@grin.hu>
parents:
diff changeset
     3
5
2128a557be76 Expand _config.sh with more variables
Peter Gervai <grin@grin.hu>
parents: 1
diff changeset
     4
# synapse api
2128a557be76 Expand _config.sh with more variables
Peter Gervai <grin@grin.hu>
parents: 1
diff changeset
     5
export  SRV="https://matrix.example.org:8448"
2128a557be76 Expand _config.sh with more variables
Peter Gervai <grin@grin.hu>
parents: 1
diff changeset
     6
# database readonly
2128a557be76 Expand _config.sh with more variables
Peter Gervai <grin@grin.hu>
parents: 1
diff changeset
     7
export   DB="postgresql://matrixro:password@localhost:5432/synapse"
2128a557be76 Expand _config.sh with more variables
Peter Gervai <grin@grin.hu>
parents: 1
diff changeset
     8
# database r/w
7
6aea45bf033b Add room and event display to cmd.sh
Peter Gervai <grin@grin.hu>
parents: 5
diff changeset
     9
export DBRW="postgresql://synapseuser:passwordd@localhost:5432/synapse"
5
2128a557be76 Expand _config.sh with more variables
Peter Gervai <grin@grin.hu>
parents: 1
diff changeset
    10
# token
2128a557be76 Expand _config.sh with more variables
Peter Gervai <grin@grin.hu>
parents: 1
diff changeset
    11
export    T="MDAxNabCadacada111..."
7
6aea45bf033b Add room and event display to cmd.sh
Peter Gervai <grin@grin.hu>
parents: 5
diff changeset
    12
# psql command line (pw in ~/.pgpass)
6aea45bf033b Add room and event display to cmd.sh
Peter Gervai <grin@grin.hu>
parents: 5
diff changeset
    13
export PSQL_CMD='psql -h 1.2.3.4 -U matrixro synapse -c'