Skip to content

Commit 1e3ce7a

Browse files
committed
Make SERVER_NAME as optional
1 parent 4ff47b1 commit 1e3ce7a

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FROM nginx:1.11.9-alpine
44
RUN apk add --no-cache --update \
55
apache2-utils
66

7+
ENV SERVER_NAME example.com
78
ENV WORKER_PROCESSES auto
89

910
COPY files/run.sh /

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ Access to http://localhost:8080 , then browser asks you username and password.
3535
|`BASIC_AUTH_USERNAME`|Basic auth username|
3636
|`BASIC_AUTH_PASSWORD`|Basic auth password|
3737
|`PROXY_PASS`|Proxy destination URL|
38-
|`SERVER_NAME`|Nginx server name|
3938

4039
### Optional
4140

4241
|Key|Description|Default|
4342
|---|---|---|
43+
|`SERVER_NAME`|Value for `server_name` directive|`example.com`|
4444
|`WORKER_PROCESSES`|Value for `worker_processes` directive|`auto`|
4545

4646
## Author

files/run.sh

-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ if [ -z $BASIC_AUTH_PASSWORD ]; then
1212
exit 1
1313
fi
1414

15-
if [ -z $SERVER_NAME ]; then
16-
echo >&2 "SERVER_NAME must be set"
17-
exit 1
18-
fi
19-
2015
if [ -z $PROXY_PASS ]; then
2116
echo >&2 "PROXY_PASS must be set"
2217
exit 1

0 commit comments

Comments
 (0)