forked from groupultra/telegram-search
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
75 lines (62 loc) · 2.42 KB
/
.env.example
File metadata and controls
75 lines (62 loc) · 2.42 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Telegram Search - Example Environment File
# Copy this as ".env" or use from docker-compose
#
# See README.md for required/optional variables and configuration details.
# =======================
# Telegram App Credentials
# =======================
# Obtain your API ID and Hash from https://my.telegram.org/apps
TELEGRAM_API_ID="611335"
TELEGRAM_API_HASH="d524b414d21f4d37f08684c1df41ac9c"
# For browser-only mode (frontend with embedded core), you must also set VITE_TELEGRAM_API_ID and VITE_TELEGRAM_API_HASH below.
# These are used by the frontend (Vue/Vite) and should match the above.
VITE_TELEGRAM_API_ID="611335"
VITE_TELEGRAM_API_HASH="d524b414d21f4d37f08684c1df41ac9c"
# ======================
# Database Configuration
# ======================
# Set type to "postgres" for production, or "pglite" for in-browser testing
DATABASE_TYPE="postgres"
DATABASE_URL="postgresql://postgres:123456@localhost:5432/postgres"
# =========================================
# MinIO Media Storage for Server
# =========================================
# When set, media (photos, stickers) are stored in MinIO instead of the database.
MINIO_URL="http://localhost:9000"
MINIO_ACCESS_KEY="minioadmin"
MINIO_SECRET_KEY="minioadmin"
MINIO_BUCKET="telegram-media"
# ==========================
# (Optional) Service Endpoints
# ==========================
# Proxy settings (uncomment and set if using a proxy for Telegram)
#
# Supported formats:
# - SOCKS5: socks5://user:pass@host:port
# - SOCKS4: socks4://user:pass@host:port
# - HTTP: http://user:pass@host:port
# - MTProxy: mtproxy://secret@host:port
#
# Example:
# PROXY_URL="socks5://user:pass@host:port"
# Host/Port settings for server deployment (optional, defaults shown)
# PORT="3333"
# HOST="0.0.0.0"
# Backend URL for reverse proxy setups (Nginx, etc)
# BACKEND_URL="http://127.0.0.1:3333"
# ======================
# Telegram Bot Token
# ======================
TELEGRAM_BOT_TOKEN=""
# ==========================
# (Optional) OpenTelemetry
# ==========================
# Enable OTEL instrumentation (traces, metrics, logs)
# OTEL_ENABLED="true"
# Single OTLP Collector endpoint — all signals (traces, metrics, logs) are sent here.
# The collector routes them to the appropriate backends (Tempo, Prometheus, Loki).
# OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
# Metrics export interval in milliseconds (default: 250)
# OTEL_METRICS_EXPORTER_INTERVAL="250"
# Enable OTEL SDK debug logging
# OTEL_DEBUG="true"