summaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-09-17 13:36:46 -0400
committerMark Felder <feld@feld.me>2024-09-17 13:40:15 -0400
commit363b462c54c454e847072869db09f8f4d5da4426 (patch)
treed947371c4a27c20c84a8c0987298c47edec64828 /config/config.exs
parent14a9663f1abe49b8f4f4f719fa2f4db3a5dd81b7 (diff)
downloadpleroma-363b462c54c454e847072869db09f8f4d5da4426.tar.gz
pleroma-363b462c54c454e847072869db09f8f4d5da4426.zip
Make the email attribute configurable
While here, fix the System.get_env usage to use the normal fallback value method and improve the UID label description
Diffstat (limited to 'config/config.exs')
-rw-r--r--config/config.exs11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/config.exs b/config/config.exs
index f53a083d0..47ddfac5a 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -612,16 +612,17 @@ config :pleroma, Pleroma.Formatter,
config :pleroma, :ldap,
enabled: System.get_env("LDAP_ENABLED") == "true",
- host: System.get_env("LDAP_HOST") || "localhost",
- port: String.to_integer(System.get_env("LDAP_PORT") || "389"),
+ host: System.get_env("LDAP_HOST", "localhost"),
+ port: String.to_integer(System.get_env("LDAP_PORT", "389")),
ssl: System.get_env("LDAP_SSL") == "true",
sslopts: [],
tls: System.get_env("LDAP_TLS") == "true",
tlsopts: [],
- base: System.get_env("LDAP_BASE") || "dc=example,dc=com",
- uid: System.get_env("LDAP_UID") || "cn",
+ base: System.get_env("LDAP_BASE", "dc=example,dc=com"),
+ uid: System.get_env("LDAP_UID", "cn"),
# defaults to CAStore's Mozilla roots
- cacertfile: nil
+ cacertfile: System.get_env("LDAP_CACERTFILE", nil),
+ mail: System.get_env("LDAP_MAIL", "mail")
oauth_consumer_strategies =
System.get_env("OAUTH_CONSUMER_STRATEGIES")