From 9b0dd4380cb0e2c68c22cbbad9d03bd62b3b6deb Mon Sep 17 00:00:00 2001 From: Jens Elkner Date: Mon, 18 May 2020 17:00:31 +0200 Subject: [PATCH] acme-redirect: add option to man page, fix help text --- man/man1/turnserver.1 | 7 +++++++ src/apps/relay/mainrelay.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/man/man1/turnserver.1 b/man/man1/turnserver.1 index 3a9131b..4fbd267 100644 --- a/man/man1/turnserver.1 +++ b/man/man1/turnserver.1 @@ -787,6 +787,13 @@ File name to store the pid of the process. Default is /var/run/turnserver.pid (if superuser account is used) or /var/tmp/turnserver.pid . .TP +.BI --acme-redirect\ URL +Redirect ACME/RFC8555 (like Let's Encrypt challenge) requests, i.e. +HTTP GET requests matching '^/.well-known/acme-challenge/(.*)' +to \fIURL\fR$1 with $1 == (.*). No validation of \fIURL\fR will be done, +so make sure you do not forget the trailing slash. If \fIURL\fR is an empty +string (the default value), no special handling of such requests will be done. +.TP .B \fB\-\-proc\-user\fP User name to run the process. After the initialization, the \fIturnserver\fP process diff --git a/src/apps/relay/mainrelay.c b/src/apps/relay/mainrelay.c index 2baa770..2343a1c 100644 --- a/src/apps/relay/mainrelay.c +++ b/src/apps/relay/mainrelay.c @@ -629,7 +629,7 @@ static char Usage[] = "Usage: turnserver [options]\n" " --pidfile <\"pid-file-name\"> File name to store the pid of the process.\n" " Default is /var/run/turnserver.pid (if superuser account is used) or\n" " /var/tmp/turnserver.pid .\n" -" --acme-redirect <\"URL\"> Redirect HTTP GET requests matching '^/.well-known/acme-challenge/(.*)' to '<\"URL\">$1'\n" +" --acme-redirect Redirect ACME, i.e. HTTP GET requests matching '^/.well-known/acme-challenge/(.*)' to '$1'.\n" " Default is '', i.e. no special handling for such requests.\n" " --secure-stun Require authentication of the STUN Binding request.\n" " By default, the clients are allowed anonymous access to the STUN Binding functionality.\n"