-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.dev.example
More file actions
44 lines (36 loc) · 1.06 KB
/
Copy path.env.dev.example
File metadata and controls
44 lines (36 loc) · 1.06 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
# BrickBang example development environment
# Copy this file to `.env.dev` or `.env` and adjust values for your environment.
# Do NOT commit your real secrets.
# App settings
BRB_ENV=dev
BRB_VER=0.1.0
# Database (Postgres)
# Example DSN: postgres://user:pass@host:5432/dbname?sslmode=disable
DATABASE_DSN=postgres://postgres:password@127.0.0.1:5432/brickbang_dev?sslmode=disable
# Redis
REDIS_ADDR=127.0.0.1:6379
REDIS_PASSWORD=
REDIS_DATABASE=0
REDIS_DIAL_TIMEOUT=5s
# Server
SERVER_ADDRESS=0.0.0.0:8080
SERVER_READ_TIMEOUT=3s
SERVER_WRITE_TIMEOUT=3s
SERVER_GRACEFUL_TIMEOUT=5s
# CORS
CORS_ENABLED=true
CORS_ALLOW_ORIGIN=*
CORS_ALLOW_METHODS=GET,POST,PUT,PATCH,DELETE,OPTIONS
CORS_ALLOW_HEADERS=Accept,Authorization,Content-Type,X-CSRF-Token
CORS_ALLOW_CREDENTIALS=false
# TLS (dev default off)
TLS_ENABLED=false
TLS_CERT_FILE=./cert/server.crt
TLS_KEY_FILE=./cert/server.key
# JWT
JWT_SECRET=change-me-dev
JWT_ACCESS_EXPIRATION=15m
JWT_REFRESH_EXPIRATION=24h
# Security keys (example hex values)
SECURITY_SIPHASH_KEY0=0x1122334455667788
SECURITY_SIPHASH_KEY1=0x8877665544332211