mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
* feat(blueprint): added chibisafe template * chore: remove spacing * fix: use caddy as service name * fix: added default credentials * feat: added healthcheck and internal network * fix: remove expose * fix: documentation links --------- Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
41 lines
888 B
TOML
41 lines
888 B
TOML
[variables]
|
|
main_domain = "${domain}"
|
|
|
|
[[config.domains]]
|
|
serviceName = "caddy"
|
|
port = 80
|
|
host = "${main_domain}"
|
|
|
|
|
|
[[config.mounts]]
|
|
filePath = "./Caddyfile"
|
|
content = """
|
|
# chibisafe/Caddyfile
|
|
# https://chibisafe.app/docs/installation/running-with-docker
|
|
{$BASE_URL} {
|
|
route {
|
|
file_server * {
|
|
root /app/uploads
|
|
pass_thru
|
|
}
|
|
|
|
@api path /api/*
|
|
reverse_proxy @api http://chibisafe_server:8000 {
|
|
header_up Host {http.reverse_proxy.upstream.hostport}
|
|
header_up X-Real-IP {http.request.header.X-Real-IP}
|
|
}
|
|
|
|
@docs path /docs*
|
|
reverse_proxy @docs http://chibisafe_server:8000 {
|
|
header_up Host {http.reverse_proxy.upstream.hostport}
|
|
header_up X-Real-IP {http.request.header.X-Real-IP}
|
|
}
|
|
|
|
reverse_proxy http://chibisafe:8001 {
|
|
header_up Host {http.reverse_proxy.upstream.hostport}
|
|
header_up X-Real-IP {http.request.header.X-Real-IP}
|
|
}
|
|
}
|
|
}
|
|
"""
|