Repository navigation
Expand file tree
/
Copy pathconfig.yaml
More file actions
63 lines (53 loc) · 1.57 KB
/
Copy pathconfig.yaml
File metadata and controls
63 lines (53 loc) · 1.57 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
# Authorization Server Configuration
# Database configuration
database:
url: "postgres://authuser:password@postgres:5432/authdb?sslmode=disable"
# Redis configuration
redis:
url: ""
# Server configuration
server:
url: "http://localhost:8080"
port: "8080"
gin_mode: "debug"
# JWT configuration
jwt:
secret: "your-super-secret-jwt-key-minimum-32-characters-long"
# RS256 (default), ES256, or HS256 (legacy, no JWKS)
signing_alg: "RS256"
# PEM private key; empty generates an ephemeral key outside release mode
signing_key_file: ""
# Comma-separated PEM keys accepted for verification during rotation
verification_key_files: ""
# Security configuration
security:
bcrypt_cost: 12
access_token_duration: 3600 # seconds
refresh_token_duration: 2592000 # seconds (30 days)
id_token_duration: 3600 # seconds
session_duration: 86400 # seconds; SSO session lifetime (re-login after this)
authorization_code_duration: 600 # seconds (10 minutes)
# CORS configuration
cors:
allowed_origins: "*"
allowed_methods: "GET,POST,PUT,DELETE,OPTIONS"
allowed_headers: "Origin,Content-Type,Accept,Authorization"
# Rate limiting configuration
rate_limit:
requests_per_minute: 60
rbac:
# Comma-separated user UUIDs with full access (tenants, permission catalog)
super_admin_user_ids: ""
# Logging configuration
logging:
level: "info"
format: "text"
# SMTP email configuration (leave host empty to disable sending in dev mode)
smtp:
host: "localhost"
port: 1025
user: ""
password: ""
from: "noreply@shieldgate.com"
from_name: "ShieldGate"
use_tls: false