mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(self-host): unfurl media hosted by the instance itself (#2451)
This commit is contained in:
1 parent
4c0f02d8a5
commit
c01d22dc05
9 files changed
+390
-20
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user