mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
Replace @ConfigProperty constructor injection with programmatic ConfigProvider.getConfig() lookup to fix native image crash when FLOCI_HOSTNAME is set at runtime. @PreMatching JAX-RS filters run before CDI beans are fully initialized, so neither @ConfigProperty nor @ConfigMapping beans are available during filter construction. Also make bucket extraction hostname-aware: only treat the first label as a bucket name when the remainder matches the configured base hostname (or a well-known AWS S3 domain). This prevents false positives when Floci sits behind a multi-label hostname like floci.svc.cluster.local.