-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
50 lines (40 loc) · 1.02 KB
/
.env.example
File metadata and controls
50 lines (40 loc) · 1.02 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
# NODE
NODE_ENV=development
# APPLICATION
VERSION=1.0.0
APP_NAME=Seamless Auth Example
APP_ID=local-dev
APP_ORIGIN=http://localhost:3000
ISSUER=http://localhost:5312
# "web" for website to auth server, "server" for api server to auth server auth
AUTH_MODE=server
DEMO=true
# Roles assigned to every new user
DEFAULT_ROLES=user,betaUser
# Roles that are allowed in the system
AVAILABLE_ROLES=user,admin,betaUser,team
# DATABASE
DB_LOGGING=false
DB_HOST=localhost
DB_PORT=5432
DB_NAME=seamless_auth
DB_USER=myuser
DB_PASSWORD=mypassword
# AUTH CONFIGURATION
ACCESS_TOKEN_TTL=30m
REFRESH_TOKEN_TTL=1h
RATE_LIMIT=100
DELAY_AFTER=50
# OPTIONAL SERVICE TOKENS
# Used only if enabling admin or m2m communications
API_SERVICE_TOKEN=32-byte-hex-string
# JWKS
JWKS_ACTIVE_KID=dev-main
# WEBAUTHN
RPID=localhost
ORIGINS=http://localhost:5173,http://localhost:5174
# ADMIN BOOTSTRAP
# Enables bootstrap feature
SEAMLESS_BOOTSTRAP_ENABLED=true
# Secret used to authorize bootstrap invite creation
SEAMLESS_BOOTSTRAP_SECRET=dev-bootstrap-secret-123