46 Zeilen
1.3 KiB
INI
46 Zeilen
1.3 KiB
INI
[Unit]
|
|
Description=Nextcloud Talk voice-translate bot
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Container]
|
|
Image=localhost/talkbot:latest
|
|
ContainerName=talkbot
|
|
|
|
Network=internal.network
|
|
PublishPort=8100:8100
|
|
|
|
PodmanArgs=--group-add=keep-groups
|
|
SecurityLabelType=container_runtime_t
|
|
|
|
Volume=/srv/containers/talkbot/voices:/app/voice-samples:Z,ro
|
|
Environment=VOICE_SAMPLES_DIR=/app/voice-samples
|
|
|
|
# --- Nextcloud connection ---
|
|
Environment=NC_URL=https://your-nextcloud.example.tld
|
|
# Shared secret used when registering the bot via:
|
|
# occ talk:bot:install "TranslateBot" <secret> https://talkbot.example/webhook
|
|
Environment=NC_BOT_SECRET=changeme
|
|
# Nextcloud user + app password (Settings > Security > App passwords) used
|
|
# only to read user languages and download/upload chat attachments.
|
|
Environment=NC_USER=changeme
|
|
Environment=NC_PASSWORD=changeme
|
|
|
|
# --- Backend services (adjust host:port to match your setup/network) ---
|
|
Environment=WHISPER_URL=http://whisper:8080
|
|
Environment=LLAMACPP_URL=http://llm:7000
|
|
#Environment=LLAMACPP_MODEL=
|
|
Environment=LLAMACPP_ENABLE_THINKING=false
|
|
Environment=QWEN_TTS_URL=http://qwen-tts:8000
|
|
|
|
# --- Behaviour ---
|
|
Environment=DEFAULT_TARGET_LANGUAGE=it
|
|
Environment=QWEN_TTS_SPEAKER=Ryan
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=default.target
|