From e4e5aad215bf5659a121921f36b22b8082694f19 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 30 Dec 2023 10:57:10 -0600 Subject: [PATCH] Add public_endpoint to pict-rs.toml --- pict-rs.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pict-rs.toml b/pict-rs.toml index b342eef..0e03127 100644 --- a/pict-rs.toml +++ b/pict-rs.toml @@ -662,3 +662,16 @@ signature_expiration = 15 # This value is the total wait time, and not additional wait time on top of the # signature_expiration. client_timeout = 30 + +## Optional: URL to a CDN at which pict-rs files are available for web consumption +# environment variable: PICTRS__STORE__PUBLIC_ENDPOINT +# default: empty +# +# When enabled, instaed of serving files itself, pict-rs will serve redirects to this URL with the +# path of the requested file. This can greatly reduce egress costs, and shorten the number of hops +# between the media and the client. +# +# Note that in order for clients to fetch media from this URL directly, any server between the +# client and pict-rs must not be configured to follow redirects, or else that server will fetch from +# this public URL and serve the file itself. +public_endpoint = "https://pict-rs.some.cdn.example.com"