auth: clean up remote IP parameter/documentation
Make the remote IP parameter more generic and make it an enum determining the source instead of a boolean. Also fix the changelog entry. Both as requested, I managed to miss those comments previously.
This commit is contained in:
@@ -1187,17 +1187,25 @@ Port of via network exposed dovecot socket
|
||||
|
||||
Default: `12345`
|
||||
|
||||
##### dovecot_rip_x_remote_addr
|
||||
##### remote_ip_source
|
||||
|
||||
_(>= 3.5.6)_
|
||||
|
||||
Use the `X-Remote-Addr` value for the remote IP (rip) parameter in the
|
||||
dovecot authentication protocol.
|
||||
For authentication mechanisms that are made aware of the remote IP
|
||||
(such as dovecot via the `rip=` auth protocol parameter), determine
|
||||
the source to use. Currently, valid values are
|
||||
|
||||
If set, Radicale must be running behind a proxy that you control and
|
||||
that sets/overwrites the `X-Remote-Addr` header (doesn't pass it) so
|
||||
that the value passed to dovecot is reliable. For example, for nginx,
|
||||
add
|
||||
`REMOTE_ADDR` (default)
|
||||
: Use the REMOTE_ADDR environment variable that captures the remote
|
||||
address of the socket connection.
|
||||
|
||||
`X-Remote-Addr`
|
||||
: Use the `X-Remote-Addr` HTTP header value.
|
||||
|
||||
In the case of `X-Remote-Addr`, Radicale must be running be running
|
||||
behind a proxy that you control and that sets/overwrites the
|
||||
`X-Remote-Addr` header (doesn't pass it) so that the value passed
|
||||
to dovecot is reliable. For example, for nginx, add
|
||||
|
||||
```
|
||||
proxy_set_header X-Remote-Addr $remote_addr;
|
||||
@@ -1205,7 +1213,7 @@ add
|
||||
|
||||
to the configuration sample.
|
||||
|
||||
Default: `False`
|
||||
Default: `REMOTE_ADDR`
|
||||
|
||||
##### imap_host
|
||||
|
||||
|
||||
Reference in New Issue
Block a user