fix(self-host): unfurl media hosted by the instance itself (#2451)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-04 16:56:35 +02:00
1 parent 4c0f02d8a5
commit c01d22dc05
9 files changed
+390 -20

No files matched your search

+3
View File
@@ -85,6 +85,7 @@ pub struct Config {
pub bind_host: String,
pub port: u16,
pub(crate) secret_key: SecretString,
pub public_endpoint: Option<String>,
pub mode: DeploymentMode,
pub read_only: bool,
pub shutdown_grace_ms: u64,
@@ -134,6 +135,8 @@ impl Config {
8080,
)?,
secret_key,
public_endpoint: non_empty(env.get("FLUXER_MEDIA_PROXY_PUBLIC_ENDPOINT"))
.map(|endpoint| endpoint.trim_end_matches('/').to_owned()),
mode,
read_only: parse_bool(
"FLUXER_MEDIA_PROXY_READ_ONLY",