config(voice): update working Gemini key and add volume mount for voice handler
This commit is contained in:
parent
177070ab5a
commit
080371bc1c
2 changed files with 8 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ BOT_TOKEN = os.getenv('BOT_TOKEN', '')
|
||||||
ADMIN_CHAT_ID = int(os.getenv('ADMIN_CHAT_ID', '0'))
|
ADMIN_CHAT_ID = int(os.getenv('ADMIN_CHAT_ID', '0'))
|
||||||
ADMIN_USER_ID = int(os.getenv('ADMIN_USER_ID', '0'))
|
ADMIN_USER_ID = int(os.getenv('ADMIN_USER_ID', '0'))
|
||||||
|
|
||||||
|
# Gemini API
|
||||||
|
GOOGLE_API_KEY = os.getenv('GOOGLE_API_KEY', os.getenv('GEMINI_API_KEY', 'AIzaSyAJMfQ_mRZ1picRXVFNaeFJ7fpAkZxUKyk'))
|
||||||
|
GEMINI_API_KEY = GOOGLE_API_KEY
|
||||||
|
|
||||||
# База данных
|
# База данных
|
||||||
BASE_DIR = Path(__file__).resolve().parent
|
BASE_DIR = Path(__file__).resolve().parent
|
||||||
DATABASE_PATH = os.getenv('DATABASE_PATH', str(BASE_DIR / 'database' / 'domovoy.db'))
|
DATABASE_PATH = os.getenv('DATABASE_PATH', str(BASE_DIR / 'database' / 'domovoy.db'))
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,13 @@ services:
|
||||||
- PYTHONPATH=/app:/app/services
|
- PYTHONPATH=/app:/app/services
|
||||||
- MUTT_DIR=/home/matrixhasyou/mutt
|
- MUTT_DIR=/home/matrixhasyou/mutt
|
||||||
- GOOGLE_CREDS_FILE=/home/matrixhasyou/domovoy_google_creds.json
|
- GOOGLE_CREDS_FILE=/home/matrixhasyou/domovoy_google_creds.json
|
||||||
|
- TZ=Europe/Ulyanovsk
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
- ./exports:/app/exports
|
- ./exports:/app/exports
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
|
- ./handlers:/app/handlers
|
||||||
- ../libs/swarmlib:/app/swarmlib:ro
|
- ../libs/swarmlib:/app/swarmlib:ro
|
||||||
- /home/matrixhasyou/domovoy_google_creds.json:/home/matrixhasyou/domovoy_google_creds.json:ro
|
- /home/matrixhasyou/domovoy_google_creds.json:/home/matrixhasyou/domovoy_google_creds.json:ro
|
||||||
- /home/matrixhasyou/mutt:/home/matrixhasyou/mutt:rw
|
- /home/matrixhasyou/mutt:/home/matrixhasyou/mutt:rw
|
||||||
|
|
@ -36,11 +38,13 @@ services:
|
||||||
- PYTHONPATH=/app:/app/services
|
- PYTHONPATH=/app:/app/services
|
||||||
- MUTT_DIR=/home/matrixhasyou/mutt
|
- MUTT_DIR=/home/matrixhasyou/mutt
|
||||||
- GOOGLE_CREDS_FILE=/home/matrixhasyou/domovoy_google_creds.json
|
- GOOGLE_CREDS_FILE=/home/matrixhasyou/domovoy_google_creds.json
|
||||||
|
- TZ=Europe/Ulyanovsk
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
- ./exports:/app/exports
|
- ./exports:/app/exports
|
||||||
- ./data:/app/data
|
- ./data:/app/data
|
||||||
|
- ./handlers:/app/handlers
|
||||||
- ../libs/swarmlib:/app/swarmlib:ro
|
- ../libs/swarmlib:/app/swarmlib:ro
|
||||||
- /home/matrixhasyou/domovoy_google_creds.json:/home/matrixhasyou/domovoy_google_creds.json:ro
|
- /home/matrixhasyou/domovoy_google_creds.json:/home/matrixhasyou/domovoy_google_creds.json:ro
|
||||||
- /home/matrixhasyou/mutt:/home/matrixhasyou/mutt:rw
|
- /home/matrixhasyou/mutt:/home/matrixhasyou/mutt:rw
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue