Real IP recognition over proxy (man, help)

* Manual page and output of --help parameter were updated according
  to changes in previous commit.
This commit is contained in:
KLuka 2015-05-18 16:26:38 +02:00
parent 883b7aa7f0
commit 17dd88e804
2 changed files with 10 additions and 3 deletions

View file

@ -800,6 +800,7 @@ static void usage(void) {
" ${home} - home directory\n" " ${home} - home directory\n"
" ${lines} - number of rows\n" " ${lines} - number of rows\n"
" ${peer} - name of remote peer\n" " ${peer} - name of remote peer\n"
" ${realip} - value of HTTP header field 'X-Real-IP'\n"
" ${uid} - user id\n" " ${uid} - user id\n"
" ${url} - the URL that serves the terminal session\n" " ${url} - the URL that serves the terminal session\n"
" ${user} - user name\n" " ${user} - user name\n"

View file

@ -449,6 +449,9 @@ number of rows.
.B ${peer} .B ${peer}
name of remote peer. name of remote peer.
.TP .TP
.B ${realip}
value of HTTP header field 'X-Real-IP'.
.TP
.B ${uid} .B ${uid}
numeric user id. numeric user id.
.TP .TP
@ -458,11 +461,14 @@ the URL that serves the terminal session.
.B ${user} .B ${user}
user name. user name.
.P .P
Other than the default environment variables of Other than the environment variables of
.BR $TERM , .BR $TERM ,
.B $COLUMNS .B $COLUMNS,
.B $LINES,
.B $SHELLINABOX_PEERNAME,
.B $SHELLINABOX_REALIP
and and
.BR $LINES , .BR $SHELLINABOX_URL,
services can have environment variables passed to them, by preceding services can have environment variables passed to them, by preceding
the <cmdline> with space separated variable assignments of the form the <cmdline> with space separated variable assignments of the form
.IR KEY = VALUE . .IR KEY = VALUE .