Browse Source

acme-redirect: add option to man page, fix help text

Jens Elkner 5 years ago
parent
commit
9b0dd4380c
2 changed files with 8 additions and 1 deletions
  1. 7 0
      man/man1/turnserver.1
  2. 1 1
      src/apps/relay/mainrelay.c

+ 7 - 0
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

+ 1 - 1
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 <URL>        Redirect ACME, i.e. HTTP GET requests matching '^/.well-known/acme-challenge/(.*)' to '<URL>$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"