Skip to content

Commit c29b266

Browse files
committed
Set localhost to default will not affect anything else
1 parent 31ceb7d commit c29b266

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.env.sample

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ DEFAULT_EMAIL=mail@yourdomain.tld
115115
#
116116
# Default host
117117
#
118-
# Nginx-proxy will then redirect all requests to a container where VIRTUAL_HOST
119-
# is set to DEFAULT_HOST, if they don't match any (other) VIRTUAL_HOST, you
120-
# might want to check the link below for more information:
118+
# Nginx-proxy will then redirect all requests to a container where you have set
119+
# "VIRTUAL HOST" set to "DEFAULT HOST", if they don't match any (other) container
120+
# You might want to check the link below for more information:
121121
# https://github.com/nginx-proxy/nginx-proxy#default-host
122122
#
123123
DEFAULT_HOST=

bin/localscript/update-env-new-site-variables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ local_update_env_new_site_variables()
7676
run_function env_update_variable $LOCAL_FILE_PATH "DEFAULT_EMAIL" "$DEFAULT_EMAIL"
7777

7878
# Default host
79-
run_function env_update_variable $LOCAL_FILE_PATH "DEFAULT_HOST" "$ARG_DEFAULT_HOST"
79+
run_function env_update_variable $LOCAL_FILE_PATH "DEFAULT_HOST" "${ARG_DEFAULT_HOST:-localhost}"
8080

8181
return 0
8282
}

0 commit comments

Comments
 (0)