diff --git a/Makefile b/Makefile index 13ec1aa..4d62fb2 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,9 @@ GOTEST_ARGS ?= -short OPENWRT_DEVICE ?= 192.168.1.1 +SIEGE_URLS_FILE ?= misc/siege/urls.txt +SIEGE_CONCURRENCY ?= 100 + watch: tools/modd/bin/modd deps ## Watching updated files - live reload ( set -o allexport && source .env && set +o allexport && tools/modd/bin/modd ) @@ -105,7 +108,10 @@ grafterm: tools/grafterm/bin/grafterm tools/grafterm/bin/grafterm -c ./misc/grafterm/dashboard.json -v job=bouncer-proxy -r 5s siege: - siege -i -c 100 -f ./misc/siege/urls.txt + $(eval TMP := $(shell mktemp)) + cat $(SIEGE_URLS_FILE) | envsubst > $(TMP) + siege -i -b -c $(SIEGE_CONCURRENCY) -f $(TMP) + rm -rf $(TMP) tools/gitea-release/bin/gitea-release.sh: mkdir -p tools/gitea-release/bin diff --git a/misc/siege/urls.txt b/misc/siege/urls.txt index a830156..6d7cf9b 100644 --- a/misc/siege/urls.txt +++ b/misc/siege/urls.txt @@ -1,6 +1,6 @@ -http://localhost:8080/blog/ -http://localhost:8080/services/ -http://localhost:8080/ -http://localhost:8080/recrutement/ -http://localhost:8080/faq/ -http://localhost:8080/societe/histoire/ \ No newline at end of file +${BASE_URL}/blog/ +${BASE_URL}/services/ +${BASE_URL} +${BASE_URL}/recrutement/ +${BASE_URL}/faq/ +${BASE_URL}/societe/histoire/ \ No newline at end of file