instance-caddy.cfg.in 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[buildout]
parts =
  caddy-service
  caddy-configuration
  publish-connection-information


eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

[directory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
bin = $${buildout:directory}/bin
srv = $${buildout:directory}/srv
var = $${buildout:directory}/var
eteri's avatar
eteri committed
18
public-html =  $${buildout:directory}/public-html
19 20 21 22 23 24 25 26 27 28 29
run = $${:var}/run
log = $${:var}/log
#www = $${:srv}/www
#ssl = $${:etc}/ssl

#################################
# caddy service
#################################
[caddy-service]
recipe = slapos.recipe.template
url = ${template-caddy-service:output}
eteri's avatar
eteri committed
30
output = $${directory:srv}/caddy
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
mode = 0700
virtual-depends =
  $${caddy-configuration:ip}

[caddy-configuration]
recipe = slapos.recipe.template
url = ${template-Caddyfile:output}
output = $${directory:etc}/Caddyfile
mode = 0600
access_log = $${directory:log}/caddy-access.log
error_log = $${directory:log}/caddy-error.log
ip = $${slap-network-information:global-ipv6}
local_ip = $${slap-network-information:local-ipv4}
port = 9443

[publish-connection-information]
recipe = slapos.cookbook:publish
url = $${caddy-configuration:ip}