diff options
Diffstat (limited to 'docker-entrypoint.sh')
| -rw-r--r-- | docker-entrypoint.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 784a5a0..b4bade6 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -4,12 +4,13 @@ set -e if [ ! -z "$HOST" ]; then ESCAPED_HOST=$(echo "$HOST" | sed 's/[\/&]/\\&/g') - find /usr/share/nginx/html -name "*.css" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/static/|g" {} \; - find /usr/share/nginx/html -name "*.js" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/static/|g" {} \; + find /usr/share/nginx/html -name "*.css" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/|g" {} \; + find /usr/share/nginx/html -name "*.js" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/|g" {} \; + find /usr/share/nginx/html -name "*.html" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/|g" {} \; echo "Updated static URLs to use HOST: $HOST" else - echo "Serving static assets from /static/" + echo "Serving static assets from root" fi exec nginx -g "daemon off;" |
