From 133d9e5a4a9a71fd74305afb4d6d93f4439d1097 Mon Sep 17 00:00:00 2001 From: sneak Date: Wed, 25 Feb 2026 19:48:03 +0700 Subject: [PATCH] chore: consolidate duplicate example config files --- config.example.yml | 36 +++++++++++++++++++++++++++++------- example-config.yml | 34 ---------------------------------- 2 files changed, 29 insertions(+), 41 deletions(-) delete mode 100644 example-config.yml diff --git a/config.example.yml b/config.example.yml index 7b4d42b..68c3206 100644 --- a/config.example.yml +++ b/config.example.yml @@ -1,13 +1,35 @@ -# Pixa configuration -# -# REQUIRED: Set signing_key before starting the server. -# Generate with: openssl rand -base64 32 +# Pixa Example Configuration +# Server settings +port: 8080 +debug: false +maintenance_mode: false + +# Data directory for SQLite database and cache files +state_dir: ./data + +# Image proxy settings +# HMAC signing key for URL signatures (leave empty to require whitelist for all requests) +# Generate with: openssl rand -base64 32 signing_key: "CHANGE_ME_generate_with_openssl_rand_base64_32" +# Hosts that don't require signatures +# Use "." prefix for wildcard subdomain matching (e.g., ".example.com" matches "cdn.example.com") whitelist_hosts: - - s3.sneak.cloud - static.sneak.cloud - sneak.berlin - - github.com - - user-images.githubusercontent.com + - s3.sneak.cloud + +# Allow HTTP upstream (only for testing, always use HTTPS in production) +allow_http: false + +# Maximum concurrent connections per upstream host (default: 20) +upstream_connections_per_host: 20 + +# Sentry error reporting (optional) +sentry_dsn: "" + +# Metrics endpoint authentication (optional) +# metrics: +# username: "admin" +# password: "secret" diff --git a/example-config.yml b/example-config.yml deleted file mode 100644 index 0209cee..0000000 --- a/example-config.yml +++ /dev/null @@ -1,34 +0,0 @@ -# Pixa Example Configuration - -# Server settings -port: 8080 -debug: false -maintenance_mode: false - -# Data directory for SQLite database and cache files -state_dir: ./data - -# Image proxy settings -# HMAC signing key for URL signatures (leave empty to require whitelist for all requests) -signing_key: "change-me-to-a-secure-random-string" - -# Hosts that don't require signatures -# Use "." prefix for wildcard subdomain matching (e.g., ".example.com" matches "cdn.example.com") -whitelist_hosts: - - static.sneak.cloud - - sneak.berlin - - s3.sneak.cloud - -# Allow HTTP upstream (only for testing, always use HTTPS in production) -allow_http: false - -# Maximum concurrent connections per upstream host (default: 20) -upstream_connections_per_host: 20 - -# Sentry error reporting (optional) -sentry_dsn: "" - -# Metrics endpoint authentication (optional) -# metrics: -# username: "admin" -# password: "secret"