2023-04-28 21:03:45 +03:00
|
|
|
# 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
|
2023-05-04 18:02:05 +03:00
|
|
|
tls_trusted_ca_certs /certs/tls/ublue-os_forge-root.pem
|
2023-04-28 21:03:45 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-29 22:28:08 +03:00
|
|
|
# semaphore
|
|
|
|
@semaphore host forge.ublue.local
|
|
|
|
|
|
|
|
handle @semaphore {
|
|
|
|
reverse_proxy ublue-os_forge-semaphore.ublue.local:3000
|
|
|
|
}
|
|
|
|
|
2023-04-28 21:03:45 +03:00
|
|
|
# Fallback for otherwise unhandled domains
|
|
|
|
handle {
|
|
|
|
respond "Bad hostname" 400
|
|
|
|
}
|
|
|
|
}
|