-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
78 lines (65 loc) · 1.77 KB
/
.env.example
File metadata and controls
78 lines (65 loc) · 1.77 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
76
77
78
# --- ГЛОБАЛЬНЫЕ НАСТРОЙКИ ---
MODE_ENV=prod
DOMAIN=domain.ru
ADMIN_EMAIL=gmail@gmail.com
# --- POSTGRES ---
DB_DATABASE=tracker
DB_USERNAME=tracker
DB_PASSWORD=password
DB_PORT=5432
DB_SCHEMA=base
DATABASE_URL=postgres://user:password@database_database/database
# --- REDIS ---
REDIS_PASSWORD=password
REDIS_HOST=host
REDIS_PORT=6379
# --- MINIO & CDN ---
MINIO_ROOT_USER=minio_admin
MINIO_ROOT_PASSWORD=password
# --- APP ---
BACKEND_PORT=3000
NODE_ENV=production
COOKIE_SECRET=same-serious-secret
CORS_ALLOWED_ORIGINS=https://domain.ru,https://api.domain.ru,http://localhost:3000,http://127.0.0.1:3000
# --- Backend server ---
S3_BUCKET_NAME=tracker
S3_ENDPOINT=http://minio:9000
S3_REGION=us-east-1
JWT_AUDIENCE="task-tracker-client"
JWT_ACCESS_SECRET=same-same-same-same-same
JWT_ACCESS_EXPIRES_IN=15m
JWT_REFRESH_SECRET=same-same-same-same-same
JWT_REFRESH_EXPIRES_IN=1d
# --- MAIL SETTINGS ---
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USER=gmail@gmail.com
MAIL_PASSWORD=password
MAIL_FROM_NAME="Task Tracker"
MAIL_FROM_EMAIL=gmail@gmail.com
# --- Frontend ---
NEXT_PORT=3000
# Next App BACKEND Instrumentation
## Example assumes that the collector is running on the same machine
OTEL_EXPORTER_OTLP_ENDPOINT=http://alloy:7003
## Force protobuf
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
## Set Backend service name
OTEL_SERVICE_NAME=next-backend
## Customize resource attributes, namespace is a recommended attribute
OTEL_RESOURCE_ATTRIBUTES=service.namespace=task-tracker
# --- Imagor ---
IMAGOR_SECRET=secret
IMAGOR_PORT=9090
IMAGOR_URL=imagor
# --- Grafana Alloy ---
ALLOY_UI_PORT=7000
ALLOY_FARO_PORT=7001
ALLOY_OTLP_GRPC_PORT=7002
# --- Loki ---
LOKI_HTTP_PORT=7100
LOKI_GRPC_PORT=7101
# --- Tempo ---
TEMPO_PORT=7200
TEMPO_OTLP_GRPC_PORT=7201
TEMPO_OTLP_HTTP_PORT=7203