From ce7056ad61d4523fc8004c1e9672de579bb8bf66 Mon Sep 17 00:00:00 2001 From: "Aode (Lion)" Date: Thu, 9 Sep 2021 14:18:16 -0500 Subject: [PATCH] Version v0.3.0-alpha.27 --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 35 ++++++++++++++++++++++------------ docker/prod/docker-compose.yml | 2 +- 4 files changed, 26 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dafbf32..f872e53 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index a5333cd..bbddc20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] license = "AGPL-3.0" readme = "README.md" diff --git a/README.md b/README.md index 2275efa..6b3e3e8 100644 --- a/README.md +++ b/README.md @@ -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 @@ -20,17 +20,28 @@ FLAGS: -V, --version Prints version information OPTIONS: - -a, --addr The address and port the server binds to. [env: PICTRS_ADDR=] [default: - 0.0.0.0:8080] - --api-key An optional string to be checked on requests to privileged endpoints [env: - PICTRS_API_KEY=] - -f, --format An optional image format to convert all uploaded files into, supports 'jpg', - 'png', and 'webp' [env: PICTRS_FORMAT=] - -m, --max-file-size Specify the maximum allowed uploaded file size (in Megabytes) [env: - PICTRS_MAX_FILE_SIZE=] [default: 40] - -p, --path The path to the data directory, e.g. data/ [env: PICTRS_PATH=] - -w, --whitelist ... An optional list of filters to whitelist, supports 'identity', 'thumbnail', - and 'blur' [env: PICTRS_FILTER_WHITELIST=] + -a, --addr + The address and port the server binds to. [env: PICTRS_ADDR=] [default: 0.0.0.0:8080] + + --api-key + An optional string to be checked on requests to privileged endpoints [env: PICTRS_API_KEY=] + + -f, --format + An optional image format to convert all uploaded files into, supports 'jpg', 'png', and 'webp' [env: + PICTRS_FORMAT=] + -m, --max-file-size + Specify the maximum allowed uploaded file size (in Megabytes) [env: PICTRS_MAX_FILE_SIZE=] [default: 40] + + --max-image-height + Specify the maximum width in pixels allowed on an image [env: PICTRS_MAX_IMAGE_HEIGHT=] [default: 10000] + + --max-image-width + Specify the maximum width in pixels allowed on an image [env: PICTRS_MAX_IMAGE_WIDTH=] [default: 10000] + + -p, --path The path to the data directory, e.g. data/ [env: PICTRS_PATH=] + -w, --whitelist ... + An optional list of filters to whitelist, supports 'identity', 'thumbnail', and 'blur' [env: + PICTRS_FILTER_WHITELIST=] ``` #### Example: diff --git a/docker/prod/docker-compose.yml b/docker/prod/docker-compose.yml index 70e7e92..93e51c9 100644 --- a/docker/prod/docker-compose.yml +++ b/docker/prod/docker-compose.yml @@ -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