2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00
pict-rs/releases/0.5.1.md

32 lines
893 B
Markdown

# pict-rs 0.5.1
## Overview
Just a quick point release to better support different public_endpoint usecases. Including paths for
the public_endpoint configuration is now supported.
### Changes
- [Support Paths in PUBLIC_ENDPOINT](#support-paths-in-public-endpoints)
## Upgrade Notes
There's no significant changes from 0.5.0, so upgrading should be as simple as pulling a new version
of pict-rs.
## Descriptions
### Support Paths in PUBLIC_ENDPOINT
The `public_endpoint` configuration option for object storage has been updated to allow setting
paths at which the files are available. Previously any set path would be overridden, treating the
file's relative path as it's absolute path. Now pict-rs will serve files respecting configured
paths.
Example
```toml
public_endpoint = "https://example.com/sub/path"
```
This will produce URLs to `https://example.com/sub/path/$filepath`