ublue-forge/rvproxy/Caddyfile
Stephan Lüscher 717998b801
feat: create ssh key for automation tasks
includes refactoring for build process
2023-05-04 15:02:05 +00:00

35 lines
918 B
Caddyfile

# Global options
{
auto_https disable_certs
persist_config off
}
# Reverse-proxy configuration
*.ublue.local {
## TLS certificates
tls /certs/_.ublue.local/cert.pem /certs/_.ublue.local/key.pem
# container registry
@registry host registry.ublue.local
handle @registry {
reverse_proxy ublue-os_forge-registry.ublue.local:5000 {
transport http {
tls
tls_trusted_ca_certs /certs/tls/ublue-os_forge-root.pem
}
}
}
# semaphore
@semaphore host forge.ublue.local
handle @semaphore {
reverse_proxy ublue-os_forge-semaphore.ublue.local:3000
}
# Fallback for otherwise unhandled domains
handle {
respond "Bad hostname" 400
}
}