X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=config%2Fconfig.exs;h=ccdd357771dc0057c0f8723eaa53a60895dbae2c;hb=b68fb3dc172a2cb13c07d7e42351947ecade1e3b;hp=326c4b601388732cf951a6555ad6f0c94dc1fd1e;hpb=acf215d983f7a57fb8375184e24d2e04eda74eb5;p=akkoma diff --git a/config/config.exs b/config/config.exs index 326c4b601..ccdd35777 100644 --- a/config/config.exs +++ b/config/config.exs @@ -370,6 +370,17 @@ config :auto_linker, rel: false ] +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"), + 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" + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env()}.exs"