Compare commits

...

2 Commits

Author SHA1 Message Date
a583478bc3 passage siam.nicolasboyer.com 2026-03-03 13:43:20 +01:00
227edc1296 rajout du tunnel cloudflare 2026-02-26 10:27:34 +01:00
3 changed files with 25 additions and 2 deletions

2
.env
View File

@ -0,0 +1,2 @@
WEBUI_SECRET_KEY=017d4c7e7248f5e9b0a7c08223ed84ea22cd21907c69e64d6d75f994772f45dd
WEBUI_URL=https://siam.nicolasboyer.com

8
.env.example Normal file
View File

@ -0,0 +1,8 @@
# Clé secrète Open WebUI (générer avec: openssl rand -hex 32)
WEBUI_SECRET_KEY=your_secret_key_here
# IP publique de ta VM Vast.ai (change à chaque nouvelle instance)
WEBUI_URL=http://YOUR_VAST_AI_IP
# Token du tunnel Cloudflare
CF_TUNNEL_TOKEN=your_cloudflare_tunnel_token

View File

@ -16,14 +16,27 @@ services:
condition: service_started
restart: always
# --- LE TUNNEL HTTPS ---
cloudflared:
image: cloudflare/cloudflared:latest
container_name: studio-cloudflared
command: tunnel --no-autoupdate run --token ${CF_TUNNEL_TOKEN}
environment:
- CF_TUNNEL_TOKEN=${CF_TUNNEL_TOKEN}
networks:
- studio-net
depends_on:
- gateway
restart: always
# --- L'INTERFACE (Open WebUI) ---
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
environment:
- OLLAMA_BASE_URL=http://ollama:11434
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY:-supersecretkey}
- WEBUI_URL=http://93.108.34.236
- WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY}
- WEBUI_URL=${WEBUI_URL}
- ENABLE_WEBSOCKETS=True
volumes:
- webui_data:/app/backend/data