X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=config%2Fconfig.exs;h=a1e6c8def36aeb7cf8285188eb964b3f55f3faa1;hb=54e7087ab412a488f8ad7286aef89d313e5e7b14;hp=cd4c8e5627235b31bb17479aaf3a648a6086ebfc;hpb=59333f2d568dc6e50fb72e5114ec7dd6bcc1ebef;p=akkoma diff --git a/config/config.exs b/config/config.exs index cd4c8e562..a1e6c8def 100644 --- a/config/config.exs +++ b/config/config.exs @@ -369,6 +369,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"