Simplify config and add user white list

This commit is contained in:
2025-08-14 12:25:58 +03:00
parent 137da5a893
commit aae83db2ea
4 changed files with 65 additions and 51 deletions

View File

@@ -1,36 +1,37 @@
# Server configuration
[server]
port = 8080
shutdown_timeout = 5
force_shutdown_timeout = 20
# Database configuration
[database]
path = "data/transcriber.db"
# AWS S3 Configuration
[aws]
# Регион AWS (например: us-east-1, eu-west-1)
region = "us-east-1"
# AWS Access Key ID (получить в AWS Console)
access_key_id = "your_access_key_id"
# AWS Secret Access Key (получить в AWS Console)
secret_access_key = "your_secret_access_key"
# Имя S3 bucket для загрузки файлов
bucket_name = "your_bucket_name"
# Кастомный endpoint для S3 (оставить пустым для AWS S3, заполнить для MinIO или других S3-совместимых сервисов)
endpoint = ""
# Yandex Cloud Speech-to-Text Configuration
# Yandex Cloud Configuration
[yandex]
# API ключ для доступа к Yandex Cloud (получить в консоли Yandex Cloud)
api_key = "your_api_key_here"
# ID папки в Yandex Cloud (получить в консоли Yandex Cloud)
folder_id = "your_folder_id_here"
# API ключ для доступа к Yandex SpeechKit (получить в консоли Yandex Cloud)
speech_kit_api_key = "your_speech_kit_api_key_here"
# Object Storage (S3) configuration
# Access Key ID для доступа к Object Storage (получить в консоли Yandex Cloud)
object_storage_access_key_id = "your_access_key_id"
# Secret Access Key для доступа к Object Storage (получить в консоли Yandex Cloud)
object_storage_secret_access_key = "your_secret_access_key"
# Имя бакета в Object Storage
object_storage_bucket_name = "your_bucket_name"
# Регион Object Storage
object_storage_region = "ru-central1"
# Endpoint Object Storage
object_storage_endpoint = "https://storage.yandexcloud.net/"
# Telegram Bot Configuration
[telegram]
# Токен Telegram бота (получить у @BotFather в Telegram)