first commit

This commit is contained in:
A'zamov Samandar
2025-11-21 14:41:16 +05:00
commit 256e80cc23
161 changed files with 7052 additions and 0 deletions

74
.env.example Normal file
View File

@@ -0,0 +1,74 @@
# Django configs
# WARNING: Change DJANGO_SECRET_KEY in production! Use a long, random string.
DJANGO_SECRET_KEY=django-insecure-change-this-in-production
DEBUG=True
DJANGO_SETTINGS_MODULE=config.settings.local
COMMAND=sh ./resources/scripts/entrypoint.sh
PORT=8081
#! debug | prod
PROJECT_ENV=debug
PROTOCOL_HTTPS=False
SCRIPT=entrypoint.sh
# OTP configs
OTP_SIZE=4
OTP_PROD=false
OTP_DEFAULT=1111
# Database configs
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
# WARNING: Change DB_PASSWORD in production! Use a strong, unique password.
DB_ENGINE=django.db.backends.postgresql_psycopg2
DB_NAME=django
DB_USER=postgres
DB_PASSWORD=2309
DB_HOST=db
DB_PORT=5432
# Cache
CACHE_BACKEND=django.core.cache.backends.redis.RedisCache
REDIS_URL=redis://redis:6379
REDIS_HOST=redis
REDIS_PORT=6379
CACHE_ENABLED=False
CACHE_TIMEOUT=120
# Vite settings
VITE_LIVE=False
VITE_PORT=5173
VITE_HOST=127.0.0.1
# Sms service
SMS_API_URL=https://notify.eskiz.uz/api
SMS_LOGIN=admin@gmail.com
SMS_PASSWORD=key
# Addition
ALLOWED_HOSTS=127.0.0.1,web
CSRF_TRUSTED_ORIGINS=http://127.0.0.1:8081
OTP_MODULE=core.services.otp
OTP_SERVICE=EskizService
# Storage
STORAGE_ID=id
STORAGE_KEY=key
STORAGE_URL=example.com
#! MINIO | AWS | FILE
STORAGE_DEFAULT=FILE
#! MINIO | AWS | STATIC
STORAGE_STATIC=STATIC
STORAGE_BUCKET_MEDIA=name
STORAGE_BUCKET_STATIC=name
STORAGE_PATH=127.0.0.1:8081/bucket/
STORAGE_PROTOCOL=http: