Use the shared secret registration API directly (#7774)

* Use the shared secret registration API directly

rather than invoking the synapse module to do it. It's probably
a bit simpler, if anything, and allows for synapse to be run in
a separate container (or rather, avoids the javascript having to have
a copy of synapse source & server config).

* Make registration secret required

Update commander (8 major versions!) to get requiredOption

* Wrong options object :/
This commit is contained in:
David Baker
2022-02-11 17:03:22 +00:00
committed by GitHub
parent 0e3b559671
commit 1c3507bc11
6 changed files with 58 additions and 49 deletions
+2 -1
View File
@@ -32,9 +32,10 @@ handle_error() {
trap 'handle_error' ERR
./synapse/start.sh
reg_secret=`./synapse/getcfg.sh registration_shared_secret`
if [ $has_custom_app -ne "1" ]; then
./element/start.sh
fi
yarn build
node lib/start.js $@
node lib/start.js --registration-shared-secret=$reg_secret $@
stop_servers