-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
49 lines (40 loc) · 1.87 KB
/
Copy path.env.example
File metadata and controls
49 lines (40 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# =============================================================
# shot by sardor — environment o'zgaruvchilari.
# Bu faylni `.env` ga nusxa oling va qiymatlarni o'zingizniki bilan
# almashtiring. `.env` git'ga tushmaydi (gitignore'da bor).
# =============================================================
# --- Ma'lumotlar bazasi ---
# Docker Compose bilan: `postgresql://shotbysardor:PAROL@db:5432/shotbysardor`
# Local dev: `postgresql://shotbysardor:shotbysardor@localhost:5433/shotbysardor`
DATABASE_URL="postgresql://shotbysardor:shotbysardor@localhost:5433/shotbysardor"
# Postgres parolini docker-compose kutadi (`POSTGRES_PASSWORD`).
# Production'da uni ham DATABASE_URL bilan mos sozlang.
POSTGRES_PASSWORD="shotbysardor"
# --- Xavfsizlik ---
# Iron-session cookie'larini imzolash uchun. Kamida 32 belgi.
# `openssl rand -hex 32` bilan generatsiya qiling.
SESSION_SECRET="please-change-me-to-at-least-32-characters-long-string"
# Birinchi ishga tushishda admin login uchun boshlang'ich parol.
# Admin panelida keyin parolni o'zgartiring.
ADMIN_INITIAL_PASSWORD="change-me-on-first-run"
# --- Sayt URL ---
# Meta teglar, sitemap, canonical URL uchun.
# Production'da: `https://shotbysardor.uz` kabi.
NEXT_PUBLIC_SITE_URL="http://localhost:3000"
# App tashqi port (docker-compose). Default 3000.
APP_PORT="3000"
# --- Fayl saqlash ---
# "local" — server diskida (docker volume `shotbysardor_storage`)
# "r2" — Cloudflare R2 (S3-mos), CDN bilan.
STORAGE_DRIVER="local"
# R2 sozlamalari — faqat STORAGE_DRIVER="r2" bo'lganda kerak.
R2_ACCOUNT_ID=""
R2_ACCESS_KEY_ID=""
R2_SECRET_ACCESS_KEY=""
R2_BUCKET_PRIVATE="" # Original fayllar, kvitansiyalar (public emas)
R2_BUCKET_PUBLIC="" # Preview, thumb, poster (CDN orqali public)
R2_PUBLIC_CDN_URL="" # Masalan: https://cdn.example.com
# --- Fayl chegaralari (MB) ---
MAX_PHOTO_MB="60"
MAX_VIDEO_MB="2048"
MAX_RECEIPT_MB="10"