summary refs log tree commit diff
path: root/demo/start.sh
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-02 10:51:42 +0100
committerErik Johnston <erik@matrix.org>2014-09-02 10:58:33 +0100
commit0393e8751989e0d6333450fd8c83555241a0eec6 (patch)
tree227ba48a990e83049ce2a492d3d26fd4058fe67b /demo/start.sh
parentos.makedirs is almost but not entirely unlike mkdir -p (diff)
downloadsynapse-0393e8751989e0d6333450fd8c83555241a0eec6.tar.xz
Make the demo listen on both HTTP and HTTPS ports
Diffstat (limited to 'demo/start.sh')
-rwxr-xr-xdemo/start.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/demo/start.sh b/demo/start.sh
index 56a1344344..7e33feca8d 100755
--- a/demo/start.sh
+++ b/demo/start.sh
@@ -11,12 +11,14 @@ mkdir -p demo/etc
 for port in 8080 8081 8082; do
     echo "Starting server on port $port... "
 
+    https_port=$((port + 400))
+
     python -m synapse.app.homeserver \
         --generate-config \
         --config-path "demo/etc/$port.config" \
-        -H "localhost:$port" \
-        -p "$port" \
-        -H "localhost:$port" \
+        -p "$https_port" \
+        --unsecure-port "$port" \
+        -H "localhost:$https_port" \
         -f "$DIR/$port.log" \
         -d "$DIR/$port.db" \
         -D --pid-file "$DIR/$port.pid" \