-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.example
More file actions
37 lines (30 loc) · 785 Bytes
/
.env.example
File metadata and controls
37 lines (30 loc) · 785 Bytes
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
# Application
NODE_ENV=development
APP_NAME=auth-service
APP_DEBUG=false
APP_CORS_ORIGINS=http://localhost:3000
# HTTP
HTTP_ENABLE=true
HTTP_HOST=0.0.0.0
HTTP_PORT=9001
HTTP_VERSIONING_ENABLE=false
HTTP_VERSION=1
# Monitoring (optional)
SENTRY_DSN=
# Database
DATABASE_URL=postgresql://USER:PASSWORD@HOST:5432/DB?schema=auth
# JWT — use long random strings (min 32 chars)
ACCESS_TOKEN_SECRET_KEY=change-me-min-32-chars-access-secret
ACCESS_TOKEN_EXPIRED=15m
REFRESH_TOKEN_SECRET_KEY=change-me-min-32-chars-refresh-secret
REFRESH_TOKEN_EXPIRED=7d
# Redis
REDIS_URL=redis://localhost:6379
REDIS_KEY_PREFIX=auth:
REDIS_TTL=3600
# gRPC
GRPC_URL=0.0.0.0:50051
GRPC_PACKAGE=auth
# RabbitMQ
RABBITMQ_URL=amqp://guest:guest@localhost:5672
RABBITMQ_AUTH_WORKER_QUEUE=auth_worker_queue