From 53befe72dbe3e865149f1f07f51d14d6b9e26801 Mon Sep 17 00:00:00 2001 From: mldytech Date: Fri, 12 Jul 2024 10:29:35 +0200 Subject: [PATCH] Modified Reverse-Proxy Examples for Caddy: - Moved existing Caddy example with basicauth to the right section - Added basic Caddy example without using basicauth --- DOCUMENTATION.md | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 7a4596028..cdae9f65c 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -350,16 +350,13 @@ location /radicale/ { # The trailing / is important! } ``` -Example **Caddy** configuration with basicauth from Caddy: +Example **Caddy** configuration: -```Caddy -handle_path /radicale* { - basicauth { - user hash - } +``` +handle_path /radicale/* { + uri strip_prefix /radicale reverse_proxy localhost:5232 { - header_up +X-Script-Name "/radicale" - header_up +X-remote-user "{http.auth.user.id}" + header_up X-Script-Name /radicale } } ``` @@ -440,6 +437,21 @@ location /radicale/ { } ``` +Example **Caddy** configuration: + +``` +handle_path /radicale/* { + uri strip_prefix /radicale + basicauth { + USER HASH + } + reverse_proxy localhost:5232 { + header_up X-Script-Name /radicale + header_up X-remote-user {http.auth.user.id} + } +} +``` + Example **Apache** configuration: ```apache