Files
md2vk/.env.example
T

20 lines
863 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# md2vk configuration
HOST=0.0.0.0
PORT=8000
# Путь к файлу с ключом Fernet-шифрования VK-токенов
# Файл должен содержать 32-байтовый base64-ключ, сгенерированный:
# python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
# В Docker — /run/secrets/token_encryption_key
# При локальном запуске — /opt/md2vk/secrets/token_encryption_key
TOKEN_ENCRYPTION_KEY_FILE=/opt/md2vk/secrets/token_encryption_key
# База данных (SQLite = один файл, не требует отдельного сервера)
DATABASE_URL=sqlite+aiosqlite:///data/md2vk.db
# Версия VK API
VK_API_VERSION=5.199
# Rate limiting: макс. запросов в минуту на один VK-аккаунт
RATE_LIMIT_PER_MINUTE=10