mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-25 02:51:17 +00:00
33 lines
893 B
Markdown
33 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`
|