summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--start.sh4
-rw-r--r--test/integration/container_test.go1
2 files changed, 4 insertions, 1 deletions
diff --git a/start.sh b/start.sh
index 60ac92c..f6e1253 100644
--- a/start.sh
+++ b/start.sh
@@ -4,7 +4,9 @@ set -e
[ -z "$DEBUG" ] || set -x
-oidc_host=$(echo "$OIDC_ISSUER" | sed 's/https\?:\/\///')
+oidc_host=$(echo "$OIDC_ISSUER" | awk -F[/:] '{print $4}')
yaml=$(sed "s/OAUTH_CLIENT_ID/$OAUTH_CLIENT_ID/" /etc/envoy/envoy.yaml)
yaml=$(echo "$yaml" | sed "s/example.com/$oidc_host/")
+
+echo "[$(date "+%H:%M:%S")] ==> Starting…"
/usr/local/bin/sparkled & /usr/local/bin/envoy --config-yaml "$yaml" --component-log-level oauth2:trace
diff --git a/test/integration/container_test.go b/test/integration/container_test.go
index 36cda37..3c0ffaa 100644
--- a/test/integration/container_test.go
+++ b/test/integration/container_test.go
@@ -57,6 +57,7 @@ func TestContainer(t *testing.T) {
testcontainers.WithEnv(map[string]string{
"APP_ENV": "test",
"BIND_ADDR": ":8080",
+ "DEBUG": "true",
"HMAC_SESSION_SECRET": "secret",
"OAUTH_CLIENT_ID": srv.MockOIDC.Config().ClientID,
"OAUTH_CLIENT_SECRET": srv.MockOIDC.Config().ClientSecret,