Updated LDAP infos

This commit is contained in:
root
2018-02-12 16:28:51 +01:00
parent 7ac9bcfa17
commit 6432e2aae6

View File

@@ -32,7 +32,7 @@ if [[ ! -d /app/data/synapse ]]; then
sed -i 's/# - module: "ldap_auth_provider.LdapAuthProvider"/ - module: "ldap_auth_provider.LdapAuthProvider"/' homeserver.yaml
sed -i 's/# config:/ config:/' homeserver.yaml
sed -i 's/# enabled: true/ enabled: true/' homeserver.yaml
sed -i 's,# uri: .*, uri: "ldap://172.18.0.1:3002",' homeserver.yaml
sed -i "s,# uri: .*, uri: \"${LDAP_URL}\",' homeserver.yaml
sed -i 's/# start_tls: true/ start_tls: false/' homeserver.yaml
sed -i 's/# base: "ou=users,dc=example,dc=com"/ base: "ou=users,dc=cloudron"/' homeserver.yaml
sed -i 's/# attributes:/ attributes:/' homeserver.yaml
@@ -98,6 +98,7 @@ gosu www-data turnserver -c /app/data/turnserver.conf --daemon -v
sed -i "s/ user: .*/ user: ${POSTGRESQL_USERNAME}/" homeserver.yaml
sed -i "s/ password: .*/ password: ${POSTGRESQL_PASSWORD}/" homeserver.yaml
sed -i "s/ database: .*/ database: ${POSTGRESQL_DATABASE}/" homeserver.yaml
sed -i "s, uri: .*, uri: \"${LDAP_URL}\"," homeserver.yaml
gosu www-data python -m synapse.app.homeserver --config-path homeserver.yaml &> /dev/null &