-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
51 lines (42 loc) · 1.08 KB
/
config.yaml
File metadata and controls
51 lines (42 loc) · 1.08 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
# 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"
# Security configuration
security:
bcrypt_cost: 12
access_token_duration: 3600 # seconds
refresh_token_duration: 2592000 # seconds (30 days)
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
# 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