mirror of
https://github.com/ublue-os/forge.git
synced 2025-04-17 20:13:44 +03:00
35 lines
918 B
Caddyfile
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
|
|
}
|
|
} |