diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2019-09-28 10:32:03 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2019-09-28 10:36:04 +0300 |
commit | 1053319cd64a0eab40fab6dc9ce3a1b78711069b (patch) | |
tree | 3d613f7c6129f667ea16aedfe46259d9ca6bde29 /config/description.exs | |
parent | 73ae38ca04df02656bfb239ceba4ffe64879e927 (diff) | |
parent | 50ab06435353144582f6afbf37402aef13c2b3f1 (diff) | |
download | pleroma-1053319cd64a0eab40fab6dc9ce3a1b78711069b.tar.gz pleroma-1053319cd64a0eab40fab6dc9ce3a1b78711069b.zip |
Merge branch 'develop' into tests/mastodon_api_controller.ex
Diffstat (limited to 'config/description.exs')
-rw-r--r-- | config/description.exs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/config/description.exs b/config/description.exs index 38b30bbf6..4547ea368 100644 --- a/config/description.exs +++ b/config/description.exs @@ -2689,6 +2689,42 @@ config :pleroma, :config_description, [ }, %{ group: :pleroma, + key: Pleroma.Plugs.RemoteIp, + type: :group, + description: """ + **If your instance is not behind at least one reverse proxy, you should not enable this plug.** + + `Pleroma.Plugs.RemoteIp` is a shim to call [`RemoteIp`](https://git.pleroma.social/pleroma/remote_ip) but with runtime configuration. + """, + children: [ + %{ + key: :enabled, + type: :boolean, + description: "Enable/disable the plug. Defaults to `false`.", + suggestions: [true, false] + }, + %{ + key: :headers, + type: {:list, :string}, + description: + "A list of strings naming the `req_headers` to use when deriving the `remote_ip`. Order does not matter. Defaults to `~w[forwarded x-forwarded-for x-client-ip x-real-ip]`." + }, + %{ + key: :proxies, + type: {:list, :string}, + description: + "A list of strings in [CIDR](https://en.wikipedia.org/wiki/CIDR) notation specifying the IPs of known proxies. Defaults to `[]`." + }, + %{ + key: :reserved, + type: {:list, :string}, + description: + "Defaults to [localhost](https://en.wikipedia.org/wiki/Localhost) and [private network](https://en.wikipedia.org/wiki/Private_network)." + } + ] + }, + %{ + group: :pleroma, key: :web_cache_ttl, type: :group, description: |