class

Hwaro::Models::PrivacyConfig

Inherits Reference < Object

[privacy] — download third-party assets at build time and serve them from the site itself. Fetching, caching and rewriting live in Core::Build::Privacy. See docs/content/features/privacy.md.

Constants

VALID_ON_ERROR = ["warn-and-keep", "fail"] of ::String

Instance methods

cache_ttl

How long a downloaded file is reused without asking the network.

Source
cache_ttl=(cache_ttl : Time::Span)

How long a downloaded file is reused without asking the network.

Source
enabled
Source
enabled=(enabled : Bool)
Source
exclude

Hosts never localized; wins over include.

Source
exclude=(exclude : Array(String))

Hosts never localized; wins over include.

Source
include

Hosts to localize; empty = every external host.

Source
include=(include __arg0 : Array(String))

Hosts to localize; empty = every external host.

Source
on_error

"warn-and-keep" (leave the external URL) | "fail"

Source
on_error=(on_error : String)

"warn-and-keep" (leave the external URL) | "fail"

Source
output_dir

Directory under the build output that holds the downloaded files.

Source
output_dir=(output_dir : String)

Directory under the build output that holds the downloaded files.

Source