Adding dynamic rewrite of nginx during entrypoint to support TARGET_PORT
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
1975b174a8
commit
353095c2f8
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
nginx
|
|
||||||
|
if [[ "${TARGET_PORT}" != "" ]]; then
|
||||||
|
sed -i -e "s,8123,${TARGET_PORT},g" /etc/nginx/sites-enabled/default
|
||||||
|
fi
|
||||||
|
/usr/sbin/nginx
|
||||||
|
|
||||||
mkdir -p /var/lib/shellinabox
|
mkdir -p /var/lib/shellinabox
|
||||||
chmod a+rwX /var/lib/shellinabox
|
chmod a+rwX /var/lib/shellinabox
|
||||||
|
Loading…
x
Reference in New Issue
Block a user