exfile v0.3.6 Exfile.Config View Source

A simple server responsible for Exfile configuration.

The default configuration:

%{
  "store" => {Exfile.Backend.FileSystem,
    directory: Path.expand("./tmp/store"),
    max_size: nil,
    hasher: Exfile.Hasher.Random
  },
  "cache" => {Exfile.Backend.FileSystem,
    directory: Path.expand("./tmp/cache"),
    max_size: nil,
    hasher: Exfile.Hasher.Random
  }
}

Link to this section Summary

Functions

Get “allow_downloads_from”. Defaults to :all

Get “allow_uploads_to”. Defaults to [“cache”]

Get “cdn_host”. Defaults to nil

Get the initialized backend for “name”

Re-initialize all registered backends

Get “secret”. Defaults to nil

Link to this section Functions

Get “allow_downloads_from”. Defaults to :all

Get “allow_uploads_to”. Defaults to [“cache”]

Get “cdn_host”. Defaults to nil

Get the initialized backend for “name”

Link to this function refresh_backend_config(timeout \\ 5000) View Source

Re-initialize all registered backends

Get “secret”. Defaults to nil