Ollama nur intern - Proxy entfernt, Ports angepasst

This commit is contained in:
nocci 2026-03-29 11:13:13 +02:00
parent 86f7178b2b
commit 8d39d8e9a3
3 changed files with 5 additions and 27 deletions

View file

@ -1,10 +0,0 @@
:80 {
# Fix Blinko Bug: /embed* -> /api/embed*
handle /embed* {
uri replace /embed /api/embed
reverse_proxy ollama:11434
}
# Alles andere direkt zu Ollama
reverse_proxy ollama:11434
}

View file

@ -30,22 +30,20 @@ NEXT_PUBLIC_BASE_URL=https://blink.your-domain.com
|---------|------|--------------|
| blinko-website | 1110 | Web UI |
| postgres | 5435 | Datenbank (nur intern empfohlen) |
| ollama | 11434 | Ollama API |
| ollama | ❌ | **Nur intern** - nicht exponiert |
## Caddy
Für externen Zugriff:
Für externen Zugriff auf Blinko:
```caddyfile
blink.example.com {
reverse_proxy localhost:1110
}
ollama.example.com {
reverse_proxy localhost:11434
}
```
**Hinweis:** Ollama ist bewusst nicht extern erreichbar und läuft nur im internen Docker-Netzwerk.
## Ollama Models
Nach dem Deploy Modelle pullen:

View file

@ -56,17 +56,7 @@ services:
- ollama_data:/root/.ollama
networks:
- blinko-network
ollama-proxy:
image: caddy:2
container_name: blinko-ollama-proxy
restart: unless-stopped
depends_on:
- ollama
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
networks:
- blinko-network
# Kein Port exponiert - nur intern im Docker-Netzwerk erreichbar
volumes:
blinko_data: