pub struct SelfHostedConfig {
pub bucket: String,
pub region: String,
pub profile: Option<String>,
pub endpoint: Option<String>,
pub table: Option<String>,
pub gate_url: Option<String>,
pub distribution_id: Option<String>,
}Expand description
The self-hosted backend’s fields — this is the CLI’s original bare
Config struct, moved here verbatim so behavior is preserved exactly.
Fields§
§bucket: StringThe S3 bucket dove uploads shares to.
region: String§profile: Option<String>AWS profile whose credentials sign presigned URLs. None → the default
credential chain (env / default profile / instance role).
endpoint: Option<String>Optional S3-compatible endpoint (MinIO, R2, …); omitted → real AWS S3.
table: Option<String>DynamoDB table holding share policies — full tier only.
gate_url: Option<String>The access-gate base URL. Its presence marks the config as full-tier:
share registers a policy and points links at the gate instead of a raw
presigned URL. This is the CloudFront domain (or a custom domain), which
signs requests to the IAM-private Lambda Function URL behind it.
distribution_id: Option<String>The CloudFront distribution fronting the gate (full tier). domain add
updates this distribution to attach a custom domain.
Implementations§
Trait Implementations§
Source§impl Clone for SelfHostedConfig
impl Clone for SelfHostedConfig
Source§fn clone(&self) -> SelfHostedConfig
fn clone(&self) -> SelfHostedConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more