From a65ad143494a2aed5b85107d8b3f421bdace40b7 Mon Sep 17 00:00:00 2001 From: Christian Medel Date: Mon, 20 Nov 2023 16:05:06 -0500 Subject: [PATCH] example_configs: Add Mastodon and Traccar --- README.md | 2 ++ example_configs/mastodon.env.example | 15 +++++++++++++++ example_configs/traccar.xml | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 example_configs/mastodon.env.example create mode 100644 example_configs/traccar.xml diff --git a/README.md b/README.md index 320d09c..650da22 100644 --- a/README.md +++ b/README.md @@ -318,6 +318,7 @@ folder for help with: - [Jitsi Meet](example_configs/jitsi_meet.conf) - [KeyCloak](example_configs/keycloak.md) - [LibreNMS](example_configs/librenms.md) +- [Mastodon](example_configs/mastodon.env.example) - [Matrix](example_configs/matrix_synapse.yml) - [Mealie](example_configs/mealie.md) - [MinIO](example_configs/minio.md) @@ -333,6 +334,7 @@ folder for help with: - [Squid](example_configs/squid.md) - [Syncthing](example_configs/syncthing.md) - [TheLounge](example_configs/thelounge.md) +- [Traccar](example_configs/traccar.xml) - [Vaultwarden](example_configs/vaultwarden.md) - [WeKan](example_configs/wekan.md) - [WG Portal](example_configs/wg_portal.env.example) diff --git a/example_configs/mastodon.env.example b/example_configs/mastodon.env.example new file mode 100644 index 0000000..7599970 --- /dev/null +++ b/example_configs/mastodon.env.example @@ -0,0 +1,15 @@ +## ADD after values in the existing .env file. +## This example uses the unsecured 3890 port. For ldaps, set LDAP_METHOD=simple_tls and LDAP_PORT=6360 +## For more details, see https://github.com/joylarkin/mastodon-documentation/blob/master/Running-Mastodon/Enabling-LDAP-login.md +LDAP_ENABLED=true +LDAP_METHOD=plain +LDAP_HOST=lldap +LDAP_PORT=3890 +LDAP_BASE=dc=domain,dc=com +LDAP_BIND_DN=uid=admin,ou=people,dc=domain,dc=com +LDAP_PASSWORD= +LDAP_UID=uid +LDAP_MAIL=mail +LDAP_UID_CONVERSION_ENABLED=true +# match username or mail to authenticate, and onlow allow users belonging to group 'mastodon' +LDAP_SEARCH_FILTER=(&(memberof=cn=mastodon,ou=groups,dc=domain,dc=com)(|(%{uid}=%{email})(%{mail}=%{email}))) \ No newline at end of file diff --git a/example_configs/traccar.xml b/example_configs/traccar.xml new file mode 100644 index 0000000..0965a77 --- /dev/null +++ b/example_configs/traccar.xml @@ -0,0 +1,16 @@ + +true + +ldap://lldap:3890 +3890 +UID=admin,OU=people,DC=domain,DC=com +BIND_USER_PASSWORD_HERE +true +OU=people,DC=domain,DC=com +uid +cn +mail + +(&(|(uid=:login)(mail=:login))(memberOf=cn=traccar,ou=groups,dc=domain,dc=com)) + +(&(|(uid=:login)(mail=:login))(memberOf=cn=lldap_admin,ou=groups,dc=domain,dc=com)) \ No newline at end of file