From 4591aa3e114c7f89d160860594f60bbf2c243a0e Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 11 Jan 2024 16:15:19 -0600 Subject: [PATCH] Update documentation around public_endpoint for subpaths --- pict-rs.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pict-rs.toml b/pict-rs.toml index 0e03127..d638b37 100644 --- a/pict-rs.toml +++ b/pict-rs.toml @@ -674,4 +674,9 @@ client_timeout = 30 # 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" +# +# Note also that if a a path is to be included in the URL, it must have a trailing slash or else it +# will be overwritten by the filepath. +# e.g. https://example.com/sub/path will turn into https://example.com/sub/001/001/UUID +# while https://example.com/sub/path/ will turn into https://example.com/sub/path/001/001/UUID +public_endpoint = "https://pict-rs.some.cdn.example.com/subpath/"