Skip to content

Commit bac7cf3

Browse files
committed
Set default host short option and update documentation
1 parent e01bfbd commit bac7cf3

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

bin/fresh-start.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,14 @@ while [[ $# -gt 0 ]]; do
453453
;;
454454

455455
# Default host
456+
-dh)
457+
ARG_DEFAULT_HOST="${2}"
458+
if [[ $ARG_DEFAULT_HOST == "" ]]; then
459+
echoerror "Invalid option for -dh"
460+
break
461+
fi
462+
shift 2
463+
;;
456464
--default-host=*)
457465
ARG_DEFAULT_HOST="${1#*=}"
458466
if [[ $ARG_DEFAULT_HOST == "" ]]; then

bin/localscript/usage-fresh-start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ Usage:
117117
(default: Mozilla-Intermediate)
118118
119119
Default Host
120-
--default-host The default host where nginx-proxy will redirect any request
121-
(default: localhost - which will return a 503)
120+
-df | --default-host The default host where nginx-proxy will redirect all requests to
121+
the container that matches the VIRTUAL_HOST
122122
123123
IPv6 support
124124
--activate-ipv6 Use to activate IPv6 support

0 commit comments

Comments
 (0)