Autorisation d'accès à l'annuaire public à toute la fédération
This commit is contained in:
parent
d3af94703f
commit
7c1be6b372
|
@ -17,12 +17,13 @@ fi
|
|||
|
||||
source ${ABSDIR}/zz_build-images.sh &&
|
||||
podman image exists ${synapse_image}:${synapse_version} &&
|
||||
podman volume create ${confvolume} && \
|
||||
podman volume create ${dbvolume} && \
|
||||
podman run -it --name ${container_name}-generate --mount type=volume,src=${confvolume},dst=/data -e SYNAPSE_SERVER_NAME=${GARBAYE_MATRIX_DOMAIN} -e SYNAPSE_REPORT_STATS=no ${synapse_image}:${synapse_version} generate && \
|
||||
podman rm ${container_name}-generate && \
|
||||
podman unshare sed -i -e "s|^#public_baseurl: https://example.com/$|public_baseurl: ${GARBAYE_MATRIX_URL}|g" `get_podman_volume_path ${confvolume}`/homeserver.yaml && \
|
||||
podman unshare sed -z -i -e "s|database:\n name: sqlite3\n args:\n database: /data/homeserver.db|database:\n name: psycopg2\n args:\n user: synapse\n password: ${GARBAYE_MATRIX_POSTGRES_PASSWORD}\n database: synapse\n host: synapse-db\n port: 5432\n cp_min: 5\n cp_max: 10|g" `get_podman_volume_path ${confvolume}`/homeserver.yaml && \
|
||||
podman unshare sed -i -e "s|^#enable_registration: false$|enable_registration: false|g" `get_podman_volume_path ${confvolume}`/homeserver.yaml && \
|
||||
podman volume create ${confvolume} &&
|
||||
podman volume create ${dbvolume} &&
|
||||
podman run -it --name ${container_name}-generate --mount type=volume,src=${confvolume},dst=/data -e SYNAPSE_SERVER_NAME=${GARBAYE_MATRIX_DOMAIN} -e SYNAPSE_REPORT_STATS=no ${synapse_image}:${synapse_version} generate &&
|
||||
podman rm ${container_name}-generate &&
|
||||
podman unshare sed -i -e "s|^#public_baseurl: https://example.com/$|public_baseurl: ${GARBAYE_MATRIX_URL}|g" `get_podman_volume_path ${confvolume}`/homeserver.yaml &&
|
||||
podman unshare sed -z -i -e "s|database:\n name: sqlite3\n args:\n database: /data/homeserver.db|database:\n name: psycopg2\n args:\n user: synapse\n password: ${GARBAYE_MATRIX_POSTGRES_PASSWORD}\n database: synapse\n host: synapse-db\n port: 5432\n cp_min: 5\n cp_max: 10|g" `get_podman_volume_path ${confvolume}`/homeserver.yaml &&
|
||||
podman unshare sed -i -e "s|^#enable_registration: false$|enable_registration: false|g" `get_podman_volume_path ${confvolume}`/homeserver.yaml &&
|
||||
podman unshare sed -i -e "s|^#allow_public_rooms_over_federation: true$|allow_public_rooms_over_federation: true|g" `get_podman_volume_path ${confvolume}`/homeserver.yaml &&
|
||||
${ABSDIR}/10_install.sh
|
||||
|
||||
|
|
Loading…
Reference in a new issue