about summary refs log tree commit diff
path: root/bundles/go-away/files/go-away.run
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2025-09-07 17:32:13 +0200
committerRobert Günzler <r@gnzler.io>2025-09-25 12:56:47 +0200
commit0bb17cd2f34918add1ddaedeb0a66531dea561a3 (patch)
treef1d3a825273c8a2ab3e804876328bd3f1a939f68 /bundles/go-away/files/go-away.run
parent332d333fa24c8b1943799aadb017f61e642008e1 (diff)
go-away: use config.yml and vendor all configuration files
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/go-away/files/go-away.run')
-rwxr-xr-xbundles/go-away/files/go-away.run18
1 files changed, 7 insertions, 11 deletions
diff --git a/bundles/go-away/files/go-away.run b/bundles/go-away/files/go-away.run
index 376fbb2..5e4384e 100755
--- a/bundles/go-away/files/go-away.run
+++ b/bundles/go-away/files/go-away.run
@@ -3,16 +3,12 @@ set -eux
 
 cd /var/lib/go-away || exit 1
 
-test -d examples
-test -d examples/snippets
-test -f examples/generic.yml
+test -d config/
+test -f config/config.yml
+test -f config/policy.yml
+test -d config/snippets/
 
 exec ./go-away \
-	--bind 0.0.0.0:${node.metadata.get("go-away/port")} \
-	--backend gzr.im="http://${node.metadata.get("container_gateway", "10.89.0.1")}:${node.metadata.get("www/gzr-im/port")}" \
-	--backend gnzler.de="http://${node.metadata.get("container_gateway", "10.89.0.1")}:${node.metadata.get("www/gzr-im/port")}" \
-	--backend gnzler.io="http://${node.metadata.get("container_gateway", "10.89.0.1")}:${node.metadata.get("www/gzr-im/port")}" \
-	--backend gonca.me="http://${node.metadata.get("container_gateway","10.89.0.1")}:${node.metadata.get("www/gonca-me/port")}" \
-	--policy examples/generic.yml \
-	--policy-snippets examples/snippets/ \
-	--challenge-template anubis
+	--config config/config.yml \
+	--policy config/policy.yml \
+	--policy-snippets config/snippets/