Bump version
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
asonix 2022-09-28 18:36:42 -05:00
parent 40246ba7fa
commit 0123d93458
3 changed files with 21 additions and 23 deletions

View file

@ -7,30 +7,26 @@ _a demo frontend for pict-rs supporting noscript_
## Usage ## Usage
### Running ### Running
``` ```
pict-rs-proxy 0.3.0-rc.3 $ pict-rs-proxy -h
A simple web frontend for pict-rs
USAGE: Usage: pict-rs-proxy [OPTIONS]
pict-rs-proxy [OPTIONS]
FLAGS: Options:
-h, --help Prints help information -a, --addr <ADDR>
-V, --version Prints version information The address and port the server binds to [env: PICTRS_PROXY_ADDR=] [default: 0.0.0.0:8081]
-u, --upstream <UPSTREAM>
OPTIONS: The url of the upstream pict-rs server [env: PICTRS_PROXY_UPSTREAM=] [default: http://localhost:8080]
-a, --addr <addr> -d, --domain <DOMAIN>
The address and port the server binds to [env: PICTRS_PROXY_ADDR=] [default: 0.0.0.0:8081] The scheme, domain, and optional port of the pict-rs proxy server [env: PICTRS_PROXY_DOMAIN=] [default: http://localhost:8081]
--console-event-buffer-size <CONSOLE_EVENT_BUFFER_SIZE>
--console-event-buffer-size <console-event-buffer-size> Number of events to buffer for the console subscriber. When unset, console will be disabled [env: PICTRS_PROXY_CONSOLE_BUFFER_SIZE=]
Number of events to buffer for the console subscriber. When unset, console will be disabled [env: -o, --opentelemetry-url <OPENTELEMETRY_URL>
PICTRS_PROXY_CONSOLE_BUFFER_SIZE=] URL of OpenTelemetry Collector [env: PICTRS_PROXY_OPENTELEMETRY_URL=]
-d, --domain <domain> -h, --help
The scheme, domain, and optional port of the pict-rs proxy server [env: PICTRS_PROXY_DOMAIN=] [default: Print help information
http://localhost:8081] -V, --version
-o, --opentelemetry-url <opentelemetry-url> Print version information
URL of OpenTelemetry Collector [env: PICTRS_PROXY_OPENTELEMETRY_URL=]
-u, --upstream <upstream>
The url of the upstream pict-rs server [env: PICTRS_PROXY_UPSTREAM=] [default: http://localhost:8080]
``` ```
#### Examples #### Examples

View file

@ -8,7 +8,7 @@ services:
- ./volumes/pictrs:/mnt - ./volumes/pictrs:/mnt
pictrs-proxy: pictrs-proxy:
image: asonix/pictrs-proxy:v0.3.0-alpha.14 image: asonix/pictrs-proxy:v0.3.0-beta.1
ports: ports:
- "8081:8081" - "8081:8081"
restart: always restart: always

View file

@ -39,7 +39,9 @@ include!(concat!(env!("OUT_DIR"), "/templates.rs"));
const HOURS: u32 = 60 * 60; const HOURS: u32 = 60 * 60;
const DAYS: u32 = 24 * HOURS; const DAYS: u32 = 24 * HOURS;
/// Simple proxy service to demonstrate pict-rs's functionality
#[derive(Clone, Debug, Parser)] #[derive(Clone, Debug, Parser)]
#[command(author, version, about, long_about = None)]
struct Config { struct Config {
#[arg( #[arg(
short, short,