mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 08:39:25 -05:00
Make the demo listen on both HTTP and HTTPS ports
This commit is contained in:
parent
45570e4695
commit
0393e87519
@ -11,12 +11,14 @@ mkdir -p demo/etc
|
|||||||
for port in 8080 8081 8082; do
|
for port in 8080 8081 8082; do
|
||||||
echo "Starting server on port $port... "
|
echo "Starting server on port $port... "
|
||||||
|
|
||||||
|
https_port=$((port + 400))
|
||||||
|
|
||||||
python -m synapse.app.homeserver \
|
python -m synapse.app.homeserver \
|
||||||
--generate-config \
|
--generate-config \
|
||||||
--config-path "demo/etc/$port.config" \
|
--config-path "demo/etc/$port.config" \
|
||||||
-H "localhost:$port" \
|
-p "$https_port" \
|
||||||
-p "$port" \
|
--unsecure-port "$port" \
|
||||||
-H "localhost:$port" \
|
-H "localhost:$https_port" \
|
||||||
-f "$DIR/$port.log" \
|
-f "$DIR/$port.log" \
|
||||||
-d "$DIR/$port.db" \
|
-d "$DIR/$port.db" \
|
||||||
-D --pid-file "$DIR/$port.pid" \
|
-D --pid-file "$DIR/$port.pid" \
|
||||||
|
Loading…
Reference in New Issue
Block a user