diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-10 19:25:12 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-11 21:21:38 -0600 |
| commit | e18f83b056fcc85700aa34ca09961a65162ed034 (patch) | |
| tree | 08757a524fdf5650f22ada1fc4fd987c04e16fe3 /start.sh | |
| parent | 4c8568d0071c569d04a93028500cfa14d330b4e8 (diff) | |
chore: replace placeholder address with env variable substitution
Diffstat (limited to 'start.sh')
| -rw-r--r-- | start.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ #!/bin/sh -/usr/local/bin/sparkled & /usr/local/bin/envoy -c /etc/envoy/envoy.yaml +set -ex + +oidc_host=$(echo "$OIDC_ISSUER" | sed 's/https\?:\/\///') +yaml=$(sed "s/OAUTH_CLIENT_ID/$OAUTH_CLIENT_ID/" /etc/envoy/envoy.yaml) +yaml=$(echo "$yaml" | sed "s/example.com/$oidc_host/") +/usr/local/bin/sparkled & /usr/local/bin/envoy --config-yaml "$yaml" |
