From: link0ff Date: Sun, 3 Mar 2019 16:29:37 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/develop' into feature/openldap-support X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=19e2b852473ea4d371fb3d77e9344025e0499428;p=akkoma Merge remote-tracking branch 'upstream/develop' into feature/openldap-support --- 19e2b852473ea4d371fb3d77e9344025e0499428 diff --cc config/config.exs index 28d93e086,a620e7451..8544dcc0d --- a/config/config.exs +++ b/config/config.exs @@@ -344,15 -345,16 +345,25 @@@ config :pleroma, Pleroma.Jobs federator_outgoing: [max_jobs: 50], mailer: [max_jobs: 10] + config :auto_linker, + opts: [ + scheme: true, + extra: true, + class: false, + strip_prefix: false, + new_window: false, + 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: [], + 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" diff --cc docs/config.md index a497fb4ca,d1bf2a6f4..d7349d54f --- a/docs/config.md +++ b/docs/config.md @@@ -301,12 -301,28 +301,38 @@@ For each pool, the options are * `max_connections` - how much connections a pool can hold * `timeout` - retention duration for connections + ## :auto_linker + + Configuration for the `auto_linker` library: + + * `class: "auto-linker"` - specify the class to be added to the generated link. false to clear + * `rel: "noopener noreferrer"` - override the rel attribute. false to clear + * `new_window: true` - set to false to remove `target='_blank'` attribute + * `scheme: false` - Set to true to link urls with schema `http://google.com` + * `truncate: false` - Set to a number to truncate urls longer then the number. Truncated urls will end in `..` + * `strip_prefix: true` - Strip the scheme prefix + * `extra: false` - link urls with rarely used schemes (magnet, ipfs, irc, etc.) + + Example: + + ```exs + config :auto_linker, + opts: [ + scheme: true, + extra: true, + class: false, + strip_prefix: false, + new_window: false, + rel: false + ] + ``` ++ +## :ldap + +* `enabled`: enables LDAP authentication +* `host`: LDAP server hostname +* `port`: LDAP port, e.g. 389 or 636 +* `ssl`: true to use SSL +* `sslopts`: additional SSL options +* `base`: LDAP base, e.g. "dc=example,dc=com" +* `uid`: attribute type to authenticate the user, e.g. when "cn", the filter will be "cn=username,base"