Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Docs: document SECRET_KEY (production session security) and TRUSTED_PROXY_HOPS in env examples
Murtaza Nasirb598b13b6cf9
diff --git a/config/env.asr.example b/config/env.asr.exampleindex 9c1cb724..ef7ccd2a 100644--- a/config/env.asr.example+++ b/config/env.asr.example@@ -131,10 +131,23 @@ CHAT_MAX_TOKENS=5000# EVENT_MAX_TOKENS=3000# --- Session Security ---+# Flask secret key used to sign session cookies and email/security tokens.+# STRONGLY RECOMMENDED in production: set this to a long random value (e.g.+# `python -c "import secrets; print(secrets.token_hex(32))"`). If left unset+# the app falls back to a publicly-known built-in dev key, which is insecure+# (session cookies could be forged), so always set it in production.+# SECRET_KEY=change-me-to-a-long-random-string+# Only send the session cookie over HTTPS. Set to true in HTTPS production# deployments. Default: false (so plain-HTTP local setups keep working).# SESSION_COOKIE_SECURE=false+# Number of trusted reverse-proxy hops in front of the app (X-Forwarded-For/+# Proto). Default: 1 (one proxy, e.g. nginx/Traefik). Increase if you chain+# additional proxies/load balancers so client IPs and HTTPS detection are read+# from the correct forwarded header.+# TRUSTED_PROXY_HOPS=1+# Timezone for displaying dates and times in the UI# Use a valid TZ database name (e.g., "America/New_York", "Europe/London", "UTC")TIMEZONE="UTC"diff --git a/config/env.transcription.example b/config/env.transcription.exampleindex 61118125..b6ec4f03 100644--- a/config/env.transcription.example+++ b/config/env.transcription.example@@ -223,10 +223,23 @@ ALLOW_REGISTRATION=falseREGISTRATION_ALLOWED_DOMAINS=# --- Session Security ---+# Flask secret key used to sign session cookies and email/security tokens.+# STRONGLY RECOMMENDED in production: set this to a long random value (e.g.+# `python -c "import secrets; print(secrets.token_hex(32))"`). If left unset+# the app falls back to a publicly-known built-in dev key, which is insecure+# (session cookies could be forged), so always set it in production.+# SECRET_KEY=change-me-to-a-long-random-string+# Only send the session cookie over HTTPS. Set to true in HTTPS production# deployments. Default: false (so plain-HTTP local setups keep working).# SESSION_COOKIE_SECURE=false+# Number of trusted reverse-proxy hops in front of the app (X-Forwarded-For/+# Proto). Default: 1 (one proxy, e.g. nginx/Traefik). Increase if you chain+# additional proxies/load balancers so client IPs and HTTPS detection are read+# from the correct forwarded header.+# TRUSTED_PROXY_HOPS=1+# --- Token Limits ---SUMMARY_MAX_TOKENS=8000CHAT_MAX_TOKENS=5000diff --git a/config/env.whisper.example b/config/env.whisper.exampleindex f664324f..e719c452 100644--- a/config/env.whisper.example+++ b/config/env.whisper.example@@ -114,10 +114,23 @@ CHAT_MAX_TOKENS=5000# EVENT_MAX_TOKENS=3000# --- Session Security ---+# Flask secret key used to sign session cookies and email/security tokens.+# STRONGLY RECOMMENDED in production: set this to a long random value (e.g.+# `python -c "import secrets; print(secrets.token_hex(32))"`). If left unset+# the app falls back to a publicly-known built-in dev key, which is insecure+# (session cookies could be forged), so always set it in production.+# SECRET_KEY=change-me-to-a-long-random-string+# Only send the session cookie over HTTPS. Set to true in HTTPS production# deployments. Default: false (so plain-HTTP local setups keep working).# SESSION_COOKIE_SECURE=false+# Number of trusted reverse-proxy hops in front of the app (X-Forwarded-For/+# Proto). Default: 1 (one proxy, e.g. nginx/Traefik). Increase if you chain+# additional proxies/load balancers so client IPs and HTTPS detection are read+# from the correct forwarded header.+# TRUSTED_PROXY_HOPS=1+# Timezone for displaying dates and times in the UI# Use a valid TZ database name (e.g., "America/New_York", "Europe/London", "UTC")TIMEZONE="UTC"