dsf
This commit is contained in:
parent
b8c5e1c66a
commit
5c636adfdc
3 changed files with 113 additions and 1 deletions
32
compose/znas/homelable/.env
Normal file
32
compose/znas/homelable/.env
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# ============================================================
|
||||
# Homelable — Environment Configuration
|
||||
# ============================================================
|
||||
# Deploy: docker stack deploy --env-file homelable.env -c homelable-stack.yml homelable
|
||||
# ============================================================
|
||||
|
||||
# Generate with: python3 -c "import secrets; print(secrets.token_hex(32))"
|
||||
SECRET_KEY=c11b1b069248886b07fc58f94952e130630853369b58ed36c32589d708e285a7
|
||||
|
||||
# --- Web UI credentials ---
|
||||
AUTH_USERNAME=admin
|
||||
# Generate hash:
|
||||
# docker run --rm ghcr.io/pouzor/homelable-backend:latest \
|
||||
# python -c "from passlib.context import CryptContext; print(CryptContext(schemes=['bcrypt']).hash('yourpassword'))"
|
||||
# Keep single quotes — bcrypt hashes contain $ characters
|
||||
AUTH_PASSWORD_HASH='$2b$12$REPLACE_WITH_REAL_BCRYPT_HASH'
|
||||
|
||||
# --- Network scanner ---
|
||||
# Adjust CIDR ranges to match your subnet layout
|
||||
SCANNER_RANGES=["192.168.3.0/24","192.168.4.0/24","192.168.5.0/24"]
|
||||
|
||||
# How often to poll node health (seconds)
|
||||
STATUS_CHECKER_INTERVAL=60
|
||||
|
||||
# --- MCP server keys ---
|
||||
# Authenticates external MCP clients (Open WebUI / Gremlin, Claude Code, n8n)
|
||||
# Generate: python3 -c "import secrets; print('mcp_sk_' + secrets.token_hex(32))"
|
||||
MCP_API_KEY=mcp_sk_CHANGEME
|
||||
|
||||
# Authenticates MCP server -> backend internally (never leave this network)
|
||||
# Generate: python3 -c "import secrets; print('svc_' + secrets.token_hex(32))"
|
||||
MCP_SERVICE_KEY=svc_d60114070a6f3c4cfe5cd9f676499a857088f5da37d18499c8cf9901264fdab7
|
||||
Loading…
Add table
Add a link
Reference in a new issue