Skip to content

Commit d6344df

Browse files
committed
env content
1 parent fd32c3e commit d6344df

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Example Environment Variables for Lightspeed Stack
2+
# Copy this file to .env and set appropriate values
3+
4+
# Required: User anonymization pepper (set to a secure random value)
5+
# This is used for HMAC-based user ID hashing to protect user privacy
6+
USER_ANON_PEPPER=your-secure-random-string-here
7+
8+
# Optional: OpenAI API Key (if using OpenAI models)
9+
OPENAI_API_KEY=your-openai-api-key
10+
11+
# Optional: Other environment variables as needed for your configuration

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ Lightspeed Core Stack is based on the FastAPI framework (Uvicorn). The service i
7979
- please note that currently Python 3.14 is not officially supported
8080
- all sources are made (backward) compatible with Python 3.12; it is checked on CI
8181

82+
## Environment Variables
83+
84+
The following environment variable is required for the service to start:
85+
86+
* `USER_ANON_PEPPER` - A secure random string used for user anonymization. Set this to a cryptographically secure random value:
87+
```bash
88+
export USER_ANON_PEPPER="your-secure-random-string-here"
89+
```
90+
91+
**Security Note**: This value should be treated as a secret and kept secure. It's used for HMAC-based user ID hashing to protect user privacy while enabling usage analytics.
92+
8293
# Installation
8394

8495
Installation steps depends on operation system. Please look at instructions for your system:

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ services:
3030
- ./lightspeed-stack.yaml:/app-root/lightspeed-stack.yaml:Z
3131
environment:
3232
- OPENAI_API_KEY=${OPENAI_API_KEY}
33+
- USER_ANON_PEPPER=${USER_ANON_PEPPER:-default-pepper-for-development-only}
3334
depends_on:
3435
llama-stack:
3536
condition: service_healthy

0 commit comments

Comments
 (0)