Skip to content

Commit 77f6f3a

Browse files
committed
Target port number
1 parent e42a907 commit 77f6f3a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

files/nginx.conf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ http {
1212
access_log /dev/stdout;
1313

1414
server {
15-
listen 80;
15+
listen ##PORT##;
1616
server_name ##SERVER_NAME##;
1717

1818
location / {

files/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ htpasswd -bBc /etc/nginx/.htpasswd $BASIC_AUTH_USERNAME $BASIC_AUTH_PASSWORD
2121
sed \
2222
-e "s/##WORKER_PROCESSES##/$WORKER_PROCESSES/g" \
2323
-e "s/##SERVER_NAME##/$SERVER_NAME/g" \
24+
-e "s/##PORT##/${PORT:-80}/g" \
2425
-e "s|##PROXY_PASS##|$PROXY_PASS|g" \
2526
nginx.conf.tmpl > /etc/nginx/nginx.conf
2627

0 commit comments

Comments
 (0)