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 @@ + + +
+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}"