MAS implementation

This commit is contained in:
Vladimir D
2025-04-25 14:25:20 +04:00
parent 6cfdea8b6d
commit b72a23cf0d
5 changed files with 163 additions and 19 deletions

View File

@@ -13,6 +13,9 @@ ARG SYNAPSE_VERSION=1.128.0
# renovate: datasource=github-releases depName=matrix-org/synapse-s3-storage-provider versioning=semver extractVersion=^v(?<version>.+)$
ARG S3PROVIDER_VERSION=1.5.0
# renovate: datasource=github-releases depName=element-hq/matrix-authentication-service versioning=semver extractVersion=^v(?<version>.+)$
ARG MAS_VERSION=0.15.0
# Synapse (https://github.com/matrix-org/synapse/blob/master/INSTALL.md)
# lxml - required for previews
RUN source /app/code/env/bin/activate && \
@@ -21,8 +24,17 @@ RUN source /app/code/env/bin/activate && \
# Updated suffix list
RUN curl -L https://publicsuffix.org/list/public_suffix_list.dat -o /app/code/env/lib/python3.12/site-packages/publicsuffix2/public_suffix_list.dat
# matrix-authentication-service
RUN mkdir -p /app/code/mas && \
curl -L https://github.com/element-hq/matrix-authentication-service/releases/download/v${MAS_VERSION}/mas-cli-x86_64-linux.tar.gz | tar zxf - --strip-components 1 -C /app/code/mas
ENV PATH=$PATH:/app/code/mas
RUN ln -sf /app/data/index.html /app/code/env/lib/python3.12/site-packages/synapse/static/index.html
# Add supervisor configs
COPY supervisor/* /etc/supervisor/conf.d/
RUN ln -sf /run/synapse/supervisord.log /var/log/supervisor/supervisord.log
RUN chown -R cloudron:cloudron /app/code
ADD index.html homeserver.yaml.template start.sh /app/pkg/