change defaults to localhost:80
This commit is contained in:
parent
8f7148e4f5
commit
8df3755be3
@ -1 +1,3 @@
|
||||
* initial release
|
||||
* ENHANCEMENT
|
||||
* always use localhost as server address
|
||||
* use port 80 as default
|
||||
|
@ -11,8 +11,7 @@ ARG BUILD_VERSION=latest
|
||||
|
||||
ENV BLC_VERSION="${BUILD_VERSION:-latest}" \
|
||||
LINK_VALIDATOR_BASE_DIR=/drone/src \
|
||||
LINK_VALIDATOR_SERVER_ADDRESS=127.0.0.1 \
|
||||
LINK_VALIDATOR_SERVER_PORT=8000 \
|
||||
LINK_VALIDATOR_SERVER_PORT=80 \
|
||||
FORCE_COLOR=true \
|
||||
NPM_CONFIG_LOGLEVEL=error
|
||||
|
||||
|
@ -20,7 +20,6 @@ docker run -v $(pwd)/public:/drone/src link-validator -ro
|
||||
|
||||
```Shell
|
||||
LINK_VALIDATOR_BASE_DIR=/drone/src
|
||||
LINK_VALIDATOR_SERVER_ADDRESS=127.0.0.1
|
||||
LINK_VALIDATOR_SERVER_PORT=8000
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eo pipefail
|
||||
|
||||
/usr/local/bin/http-server "$LINK_VALIDATOR_BASE_DIR" -p "$LINK_VALIDATOR_SERVER_PORT" -a "$LINK_VALIDATOR_SERVER_ADDRESS" -s &
|
||||
exec /usr/local/bin/broken-link-checker "$@" http://"$LINK_VALIDATOR_SERVER_ADDRESS":"$LINK_VALIDATOR_SERVER_PORT"
|
||||
/usr/local/bin/http-server "$LINK_VALIDATOR_BASE_DIR" -p "$LINK_VALIDATOR_SERVER_PORT" -a 127.0.0.1 -s &
|
||||
exec /usr/local/bin/broken-link-checker "$@" http://localhost:"$LINK_VALIDATOR_SERVER_PORT"
|
||||
|
Reference in New Issue
Block a user