Finishing make app refactor.
This commit is contained in:
3
all-apps/instance-control/b0.0.1/Caddyfile
Normal file
3
all-apps/instance-control/b0.0.1/Caddyfile
Normal file
@@ -0,0 +1,3 @@
|
||||
{$instance_control_SUBDOMAIN}.{$ROOT_DOMAIN} {
|
||||
reverse_proxy http://instance_control:9000
|
||||
}
|
||||
8
all-apps/instance-control/b0.0.1/Makefile
Normal file
8
all-apps/instance-control/b0.0.1/Makefile
Normal 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)
|
||||
9
all-apps/instance-control/b0.0.1/make-instance-control-config.sh
Executable file
9
all-apps/instance-control/b0.0.1/make-instance-control-config.sh
Executable 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
|
||||
Reference in New Issue
Block a user