From 002acd92d07cf3c67814187c242d5e0353796b9b Mon Sep 17 00:00:00 2001 From: "dr.holy" Date: Sat, 6 Sep 2025 21:23:22 +0000 Subject: [PATCH] adding .env --- .env | 33 +++++++++++++++++++++++++++++++++ .gitignore | 1 - videocall-frontend/.env | 3 +++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .env create mode 100644 videocall-frontend/.env diff --git a/.env b/.env new file mode 100644 index 0000000..84c2e7a --- /dev/null +++ b/.env @@ -0,0 +1,33 @@ +# Django настройки +DEBUG=False +SECRET_KEY=Gxe7uWz8X0n0xs9saFErah5vpYXFM1NTW8e8lxZOqfR6OZSKANooMnCdTuHu11rn + +# База данных PostgreSQL +POSTGRES_DB=videocall_db +POSTGRES_USER=postgres +POSTGRES_PASSWORD=96ntpa98iYfg +DB_PASSWORD=VLhCHPVh7XqqnCZNe +DB_HOST=db +DB_PORT=5432 + +# Redis для сессий и WebSocket +REDIS_URL=redis://redis:6379/0 + +# Настройки приложения +ROOM_EXPIRY_HOURS=24 +MAX_PARTICIPANTS_PER_ROOM=2 +SHORT_CODE_LENGTH=6 + +# CORS настройки +CORS_ALLOWED_ORIGINS=https://test.byte-mate.xyz +ALLOWED_HOSTS=test.byte-mate.xyz,localhost,127.0.0.1 + +# SSL сертификаты (пути в системе) +SSL_CERT_PATH=/etc/letsencrypt/live/test.byte-mate.xyz/fullchain.pem +SSL_KEY_PATH=/etc/letsencrypt/live/test.byte-mate.xyz/privkey.pem +DOMAIN_NAME=test.byte-mate.xyz + +# Frontend настройки (для разработки) +VITE_API_BASE_URL=https://test.byte-mate.xyz/api +VITE_WS_BASE_URL=wss://test.byte-mate.xyz +VITE_APP_NAME=Video Call App diff --git a/.gitignore b/.gitignore index 10691a1..db5f80e 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,6 @@ pip-delete-this-directory.txt .coverage .pytest_cache/ htmlcov/ -.env .venv env/ venv/ diff --git a/videocall-frontend/.env b/videocall-frontend/.env new file mode 100644 index 0000000..574a0ce --- /dev/null +++ b/videocall-frontend/.env @@ -0,0 +1,3 @@ +VITE_API_BASE_URL=https://test.byte-mate.xyz/api +VITE_WS_BASE_URL=wss://test.byte-mate.xyz +VITE_APP_NAME=Video Call App