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

Version v0.3.0-alpha.27

This commit is contained in:
Aode (Lion) 2021-09-09 14:18:16 -05:00
parent ccef9cb8a2
commit ce7056ad61
4 changed files with 26 additions and 15 deletions

2
Cargo.lock generated
View file

@ -925,7 +925,7 @@ dependencies = [
[[package]]
name = "pict-rs"
version = "0.3.0-alpha.26"
version = "0.3.0-alpha.27"
dependencies = [
"actix-form-data",
"actix-rt",

View file

@ -1,7 +1,7 @@
[package]
name = "pict-rs"
description = "A simple image hosting service"
version = "0.3.0-alpha.26"
version = "0.3.0-alpha.27"
authors = ["asonix <asonix@asonix.dog>"]
license = "AGPL-3.0"
readme = "README.md"

View file

@ -9,7 +9,7 @@ _a simple image hosting service_
## Usage
### Running
```
pict-rs 0.3.0-alpha.22
pict-rs 0.3.0-alpha.27
USAGE:
pict-rs [FLAGS] [OPTIONS] --path <path>
@ -20,17 +20,28 @@ FLAGS:
-V, --version Prints version information
OPTIONS:
-a, --addr <addr> The address and port the server binds to. [env: PICTRS_ADDR=] [default:
0.0.0.0:8080]
--api-key <api-key> An optional string to be checked on requests to privileged endpoints [env:
PICTRS_API_KEY=]
-f, --format <format> An optional image format to convert all uploaded files into, supports 'jpg',
'png', and 'webp' [env: PICTRS_FORMAT=]
-m, --max-file-size <max-file-size> Specify the maximum allowed uploaded file size (in Megabytes) [env:
PICTRS_MAX_FILE_SIZE=] [default: 40]
-a, --addr <addr>
The address and port the server binds to. [env: PICTRS_ADDR=] [default: 0.0.0.0:8080]
--api-key <api-key>
An optional string to be checked on requests to privileged endpoints [env: PICTRS_API_KEY=]
-f, --format <format>
An optional image format to convert all uploaded files into, supports 'jpg', 'png', and 'webp' [env:
PICTRS_FORMAT=]
-m, --max-file-size <max-file-size>
Specify the maximum allowed uploaded file size (in Megabytes) [env: PICTRS_MAX_FILE_SIZE=] [default: 40]
--max-image-height <max-image-height>
Specify the maximum width in pixels allowed on an image [env: PICTRS_MAX_IMAGE_HEIGHT=] [default: 10000]
--max-image-width <max-image-width>
Specify the maximum width in pixels allowed on an image [env: PICTRS_MAX_IMAGE_WIDTH=] [default: 10000]
-p, --path <path> The path to the data directory, e.g. data/ [env: PICTRS_PATH=]
-w, --whitelist <whitelist>... An optional list of filters to whitelist, supports 'identity', 'thumbnail',
and 'blur' [env: PICTRS_FILTER_WHITELIST=]
-w, --whitelist <whitelist>...
An optional list of filters to whitelist, supports 'identity', 'thumbnail', and 'blur' [env:
PICTRS_FILTER_WHITELIST=]
```
#### Example:

View file

@ -2,7 +2,7 @@ version: '3.3'
services:
pictrs:
image: asonix/pictrs:v0.3.0-alpha.26-r2
image: asonix/pictrs:v0.3.0-alpha.27
ports:
- "127.0.0.1:8080:8080"
restart: always