Commit 586f076c authored by eteri's avatar eteri

caddy: use slapos.cookbook:wrapper instead of template

parent 68b4afdf
......@@ -28,12 +28,10 @@ log = $${:var}/log
# caddy service
#################################
[caddy-service]
recipe = slapos.recipe.template
url = ${template-caddy-service:output}
output = $${directory:service}/caddy
mode = 0700
virtual-depends =
$${caddy-configuration:ipv6}
recipe = slapos.cookbook:wrapper
command-line = ${caddy:output} -conf $${caddy-configuration:output}
wrapper-path = $${directory:service}/caddy
output = $${:wrapper-path}
[caddy-configuration]
recipe = slapos.recipe.template
......
......@@ -2,13 +2,11 @@
extends =
../../component/caddy/buildout.cfg
../../stack/slapos.cfg
../../component/dash/buildout.cfg
parts =
golang19
slapos-cookbook
instance-profile
template-caddy-service
template-caddy
caddy
......@@ -25,13 +23,6 @@ directory = ${buildout:directory}/go.work
src = ${:directory}/src
bin = ${:directory}/bin
[template-caddy-service]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template-caddy-service.sh.in
md5sum = 3723cc727fbbe28627a4cf8482f4dded
output = ${buildout:directory}/template-caddy-service.sh.in
mode = 0644
[template-caddyfile]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/Caddyfile.in
......@@ -42,7 +33,7 @@ mode = 0644
[template-caddy]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-caddy.cfg.in
md5sum = 42ec4ee2b67fe8aaa4db4be468624ea2
md5sum = 045022e5698badca5dbdd6b95518f8e1
output = ${buildout:directory}/instance-caddy.cfg.in
mode = 0644
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment