diff --git a/start.sh b/start.sh index 985fe29..04e3385 100755 --- a/start.sh +++ b/start.sh @@ -21,6 +21,8 @@ xmlstarlet ed --inplace \ --update '//properties/entry[@key="database.password"]' -v "${CLOUDRON_POSTGRESQL_PASSWORD}" \ /app/data/traccar.xml +xmlstarlet ed --inplace --update '//properties/entry[@key="web.url"]' -v "${CLOUDRON_APP_ORIGIN}" /app/data/traccar.xml + xmlstarlet ed --inplace \ --update '//properties/entry[@key="ldap.url"]' -v "${CLOUDRON_LDAP_URL}" \ --update '//properties/entry[@key="ldap.base"]' -v "${CLOUDRON_LDAP_USERS_BASE_DN}" \ diff --git a/traccar.xml.template b/traccar.xml.template index 82de28c..4de4642 100644 --- a/traccar.xml.template +++ b/traccar.xml.template @@ -23,6 +23,8 @@ ##CLOUDRON_POSTGRESQL_USERNAME## ##CLOUDRON_POSTGRESQL_PASSWORD## + ##CLOUDRON_APP_ORIGIN## + true ##CLOUDRON_LDAP_URL## ##CLOUDRON_LDAP_USERS_BASE_DN##