homelab-codex-ws/services/llm-gateway/env.example
oskar cbb910d856 feat(llm-gateway): wciagniecie shadow-serwisu z PIHA do GitOps
Kod zyl tylko na dysku PIHA w /opt/llm-gateway (bez gita). Przeniesiony do
services/llm-gateway/ pod pelny wzorzec homelaba:

- app/main.py: kod 1:1 z PIHA + OLLAMA_URL/CHAT_MODEL/CODE_MODEL
  nadpisywalne przez env (defaulty bez zmian)
- docker-compose.yml: bind TYLKO do Tailscale IP (${TAILSCALE_BIND_IP},
  wzorzec fleet-prometheus), nie 0.0.0.0 jak w starym compose
- service.yaml, env.example (bez sekretow), healthcheck.sh, README, testy
- hosts/piha/runtime/llm-gateway: mem_limit 256m (PIHA jest RAM-bound)
- rejestracja w hosts/piha/services.yaml i inventory/topology.yaml

Zepsuty /opt/llm-gateway/docker-compose.yml (zduplikowany klucz ports)
celowo NIE przeniesiony.

DoD: pytest 4 passed; docker build + smoke run OK (GET / -> gateway ok).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 15:08:33 +02:00

11 lines
504 B
Plaintext

# llm-gateway has NO secrets, but the Tailscale-only port bind needs one
# host-local value. Copy this file to .env (gitignored) next to
# docker-compose.yml; docker compose picks it up automatically.
# Tailscale IP of the PIHA node. Bind the listen socket ONLY to the mesh —
# never 0.0.0.0. Verify when rebuilding the host: tailscale ip -4.
TAILSCALE_BIND_IP=100.108.208.3
# Optional: override the Ollama upstream (defaults to SOLARIA over MagicDNS).
# OLLAMA_URL=http://solaria:11434/api/generate