Finishing make app refactor.

This commit is contained in:
2026-07-03 10:14:03 -07:00
parent 0f82b97ff6
commit 422d2a38d2
22 changed files with 187 additions and 160 deletions

View File

@@ -0,0 +1,3 @@
{$instance_control_SUBDOMAIN}.{$ROOT_DOMAIN} {
reverse_proxy http://instance_control:9000
}

View File

@@ -0,0 +1,8 @@
IMAGE_DEPS := $(IMAGE_DEPS) \
app/instance-control/webhook_secret \
app/instance-control/hooks/hooks.json
app/instance-control/webhook_secret: $(apps_config)
bash -c 'source $(apps_config); printf "%s\n" "$$INSTANCE_CONTROL_WEBHOOKS_SECRET" > $@'
app/instance-control/hooks/hooks.json: $(apps_config) app/instance-control/make-instance-control-config.sh
./app/instance-control/make-instance-control-config.sh $(apps_config)

View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -e
set -a # export everything in the config for later use by envsubst
. $1 # source the apps.config file with then env vars
# substitute template with env var to insert webhooks secret
envsubst < app/instance-control/hooks/hooks.json.tmpl > app/instance-control/hooks/hooks.json