Skip to content

Latest commit

 

History

History

static-config

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

multistore-static-config

Static file-based configuration provider for the multistore S3 proxy gateway.

Overview

Loads bucket, credential, and role configurations from TOML or JSON files at startup. Implements both BucketRegistry and CredentialRegistry, making it suitable for simple deployments or development environments.

Usage

use multistore_static_config::StaticProvider;

let provider = StaticProvider::from_file("config.toml")?;

let gateway = ProxyGateway::new(
    backend,
    provider.clone(),  // as BucketRegistry
    provider,          // as CredentialRegistry
    virtual_host_domain,
);