1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

note about authentication header and connect issues

Peter Bieringer 2024-11-17 07:34:53 +01:00
parent c7f3273b49
commit ee7adb4a3e

@ -188,11 +188,21 @@ ngrep -d lo port 5232
# Authorization Header suppressed # Authorization Header suppressed
## Apache + WSGI ## Reverse Proxy
Required option to use user authentication of _radicale_:
* Apache: (nothing-to-do, not blocked by default)
* nginx: `proxy_pass_header Authorization`
See also example configurations:
* https://github.com/Kozea/Radicale/blob/master/contrib/nginx/
## Apache+WSGI
Required option to use user authentication of _radicale_: `WSGIPassAuthorization On` Required option to use user authentication of _radicale_: `WSGIPassAuthorization On`
See also example configuration: https://github.com/Kozea/Radicale/blob/master/contrib/apache/radicale.conf See also example configurations:
* https://github.com/Kozea/Radicale/blob/master/contrib/apache/
# MOVE not working # MOVE not working
@ -218,6 +228,8 @@ Check for headers passed to _Radicale_
See also See also
* https://github.com/Kozea/Radicale/blob/master/contrib/apache/radicale.conf * https://github.com/Kozea/Radicale/blob/master/contrib/apache/radicale.conf
Note: `X-Forwarded-Host` is added by default
``` ```
RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s" RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s"
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME} RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
@ -231,3 +243,20 @@ See also
proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
``` ```
# Connection not working or flapping
In case connection from reverse proxy towards _Radicale_ is not working or flapping check
* SELinux configuration above
* Listen socket of _Radicale_ matches ProxyPass host configuration
| **System** | **ProxyPass** | **Radicale server/host** | **Expected Result** |
| -- | -- | -- | -- |
| IPv4-only | 127.0.0.1 | 127.0.0.1 | ok |
| IPv4-only | localhost | 127.0.0.1 | ok |
| IPv4-only | 127.0.0.1 | localhost | ok |
| IPv4-only | localhost | localhost | ok |
| IPv4+IPv6 | 127.0.0.1 | 127.0.0.1 | ok |
| IPv4+IPv6 | localhost | 127.0.0.1 | flapping |
| IPv4+IPv6 | 127.0.0.1 | localhost | ok |
| IPv4+IPv6 | localhost | localhost | ok |