Browse Source

matrix: riot prefers synapse's full url

Guilhem Saurel 6 years ago
parent
commit
f2012d93af
2 changed files with 3 additions and 3 deletions
  1. 2 2
      matrix/Dockerfile
  2. 1 1
      matrix/docker-compose.yml

+ 2 - 2
matrix/Dockerfile

@@ -7,5 +7,5 @@ ARG RIOT_VERSION
 RUN curl -sSL https://github.com/vector-im/riot-web/releases/download/$RIOT_VERSION/riot-$RIOT_VERSION.tar.gz \
   | tar -xz --strip-components=1
 
-ARG SYNAPSE_SERVER_NAME
-RUN sed "/default_hs_url/s=https://matrix.org=//$SYNAPSE_SERVER_NAME=" config.sample.json > config.json
+ARG SYNAPSE_FULL_URL
+RUN sed "/default_hs_url/s=https://matrix.org=//$SYNAPSE_FULL_URL=" config.sample.json > config.json

+ 1 - 1
matrix/docker-compose.yml

@@ -38,7 +38,7 @@ services:
     build:
       context: .
       args:
-        SYNAPSE_SERVER_NAME: ${SYNAPSE_SERVER_NAME}
+        SYNAPSE_FULL_URL: ${CHATONS_SERVICE:-matrix}.${CHATONS_DOMAIN:-localhost}
         RIOT_VERSION: v0.17.8
     labels:
       traefik.enable: "true"