synapse/_config.sh
author Peter Gervai <grin@grin.hu>
Wed, 02 Mar 2022 14:50:37 +0100
changeset 7 6aea45bf033b
parent 5 2128a557be76
permissions -rwxr-xr-x
Add room and event display to cmd.sh
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'