From 23f7a98154f3f5cb3e2340187b96ddf1597e68a4 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 21 Sep 2020 14:30:05 -0700 Subject: [PATCH] make index.html customizable --- Dockerfile | 4 +++- index.html | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ start.sh | 2 ++ 3 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 index.html diff --git a/Dockerfile b/Dockerfile index 977f973..58d0664 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,10 @@ RUN pip install --upgrade pip && \ RUN curl -sL https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_amd64 -o /usr/bin/yq && \ chmod +x /usr/bin/yq +RUN ln -sf /app/data/index.html /app/code/env/lib/python3.6/site-packages/synapse/static/index.html + RUN chown -R cloudron.cloudron /app/code -ADD homeserver.yaml.template start.sh /app/pkg/ +ADD index.html homeserver.yaml.template start.sh /app/pkg/ CMD [ "/app/pkg/start.sh" ] diff --git a/index.html b/index.html new file mode 100644 index 0000000..42fe8aa --- /dev/null +++ b/index.html @@ -0,0 +1,68 @@ + + + + Synapse is running + + + + +

Synapse is running

+

Your Synapse server is ready for messages.

+

To use this server you'll need a Matrix client. +

+

Welcome to the Matrix universe :)

+
+

+ + + matrix.org + +   -   + + cloudron.io + + +

+ + + diff --git a/start.sh b/start.sh index 13df023..d240b61 100755 --- a/start.sh +++ b/start.sh @@ -38,6 +38,8 @@ if [[ ! -f /app/data/configs/homeserver.yaml ]]; then fi fi +[[ ! -f /app/data/index.html ]] && cp /app/pkg/index.html /app/data/index.html + echo "==> Configuring synapse" yq w -i /app/data/configs/homeserver.yaml public_baseurl "${CLOUDRON_APP_ORIGIN}"