Skip to content

Commit 397e379

Browse files
committed
feat: 📸 Add screenshot in readme
1 parent 7110b8e commit 397e379

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Lightweight API Key management solution. Supports OAuth2/OIDC authentication, Va
44

55
Can be useful to provide an easy and old-school API key authentication mechanism to a HTTP service behind Traefik.
66

7+
![Screenshot](./screenshot.png)
8+
79
## Features
810

911
- **Forward Auth**: Request validation for Traefik proxy

‎screenshot.png‎

252 KB
Loading

‎src/config.rs‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub(crate) struct FrontendConfig {
9393
pub api_base_url: Option<String>,
9494

9595
/// Human-friendly application name for the frontend.
96-
#[config(env = "FRONTEND_APP_NAME", default = "Valkey Token Manager")]
96+
#[config(env = "FRONTEND_APP_NAME", default = "Rusty Valkey Forward Auth")]
9797
pub app_name: String,
9898

9999
/// Authority URL for the frontend OIDC client.
@@ -161,12 +161,13 @@ impl FrontendConfig {
161161
self.oidc_redirect_uri = take_trimmed(self.oidc_redirect_uri.take());
162162

163163
if let Some(path) = self.docs_html_file.take()
164-
&& !path.as_os_str().is_empty() {
165-
let html = fs::read_to_string(&path).with_context(|| {
166-
format!("failed to read FRONTEND_DOCS_HTML_FILE {}", path.display())
167-
})?;
168-
self.docs_html = Some(html);
169-
}
164+
&& !path.as_os_str().is_empty()
165+
{
166+
let html = fs::read_to_string(&path).with_context(|| {
167+
format!("failed to read FRONTEND_DOCS_HTML_FILE {}", path.display())
168+
})?;
169+
self.docs_html = Some(html);
170+
}
170171

171172
self.docs_html = self.docs_html.take().and_then(|html| {
172173
if html.trim().is_empty() {

0 commit comments

Comments
 (0)