Merge branch 'master' into pre-commit-ci-update-config

This commit is contained in:
Guilhem Saurel 2022-08-01 23:38:08 +02:00
commit dd20888af4
2 changed files with 17 additions and 0 deletions

View file

@ -11,6 +11,22 @@ WORKDIR $SYNAPSE_CONFIG_DIR
RUN chown -R 991:991 . \ RUN chown -R 991:991 . \
&& /start.py generate \ && /start.py generate \
&& sed -i 's=/data=/srv=;s=8008=80=;s=#sup=sup=;' homeserver.yaml \ && sed -i 's=/data=/srv=;s=8008=80=;s=#sup=sup=;' homeserver.yaml \
&& echo "" >> homeserver.yaml \
&& echo "rc_message:" >> homeserver.yaml \
&& echo " burst_count: 1000" >> homeserver.yaml \
&& echo "rc_registration:" >> homeserver.yaml \
&& echo " burst_count: 1000" >> homeserver.yaml \
&& echo "rc_registration_token_validity:" >> homeserver.yaml \
&& echo " burst_count: 1000" >> homeserver.yaml \
&& echo "rc_login:" >> homeserver.yaml \
&& echo " address:" >> homeserver.yaml \
&& echo " burst_count: 1000" >> homeserver.yaml \
&& echo " account:" >> homeserver.yaml \
&& echo " burst_count: 1000" >> homeserver.yaml \
&& echo " failed_attempts:" >> homeserver.yaml \
&& echo " burst_count: 1000" >> homeserver.yaml \
&& echo "rc_joins:" >> homeserver.yaml \
&& echo " burst_count: 1000" >> homeserver.yaml \
&& python -m synapse.app.homeserver --config-path homeserver.yaml --generate-keys && python -m synapse.app.homeserver --config-path homeserver.yaml --generate-keys
RUN pip install --no-cache-dir markdown matrix-nio httpx coverage RUN pip install --no-cache-dir markdown matrix-nio httpx coverage

View file

@ -127,3 +127,4 @@ class GithubFormatterTest(unittest.IsolatedAsyncioTestCase):
).json(), ).json(),
{"status": 401, "ret": "Invalid SHA-256 HMAC digest"}, {"status": 401, "ret": "Invalid SHA-256 HMAC digest"},
) )
await client.close()