-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.example.json
More file actions
70 lines (65 loc) · 3 KB
/
app.example.json
File metadata and controls
70 lines (65 loc) · 3 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
64
65
66
67
68
69
70
{
"log_level": "debug",
"log_format": "json",
"log_time_format": "iso8601",
"log_show_caller_in_debug": true,
"request_timeout": "60s",
"cors_allowed_origins": ["http://localhost:3210"],
"cors_allowed_methods": ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
"cors_allowed_headers": ["Accept", "Authorization", "Content-Type", "X-Captcha-Response"],
"cors_exposed_headers": ["Link"],
"cors_allow_credentials": true,
"cors_max_age": "5m",
"shutdown_timeout": "15s",
"listen_addr": ":3333",
"read_timeout": "0s",
"write_timeout": "0s",
"read_header_timeout": "10s",
"idle_timeout": "0s",
"database_url": "postgres://app_username:app_password@localhost:5432/app_database?sslmode=disable",
"database_max_open_conns": 20,
"database_max_idle_conns": 5,
"database_conn_max_lifetime": "30m",
"database_conn_max_idle_time": "5m",
"authentication_timing_attack_delay": "500ms",
"authentication_refresh_token_ttl": "36h",
"authentication_refresh_token_secret_length": 32,
"authentication_refresh_token_leeway": "10s",
"authentication_refresh_token_cookie_name": "refresh_token",
"authentication_refresh_token_cookie_domain": "",
"authentication_refresh_token_cookie_path": "/account/refresh-session",
"authentication_refresh_token_cookie_secure": true,
"authentication_refresh_token_cookie_http_only": true,
"authentication_access_token_ttl": "5m",
"authentication_access_token_secret_length": 32,
"authentication_email_verification_cooldown": "1m",
"authentication_email_verification_code_ttl": "15m",
"authentication_email_verification_max_attempts": 5,
"authentication_password_reset_cooldown": "1m",
"authentication_password_reset_code_ttl": "15m",
"authentication_password_reset_max_attempts": "5",
"authentication_password_reset_token_ttl": "15m",
"authentication_password_argon2_memory": 65536,
"authentication_password_argon2_iterations": 3,
"authentication_password_argon2_parallelism": 2,
"authentication_password_argon2_salt_length": 16,
"authentication_password_argon2_key_length": 32,
"authentication_otp_argon2_memory": 32,
"authentication_otp_argon2_iterations": 1,
"authentication_otp_argon2_parallelism": 2,
"authentication_otp_argon2_salt_length": 16,
"authentication_otp_argon2_key_length": 16,
"captcha_enabled": true,
"captcha_turnstile_base_url": "https://challenges.cloudflare.com/turnstile/v0",
"captcha_turnstile_secret_key": "1x0000000000000000000000000000000AA",
"transactional_emails_enabled": true,
"transactional_emails_daily_global_limit": 500,
"transactional_emails_sender_email": "noreply@example.com",
"transactional_emails_sender_name": "Go API Template",
"transactional_emails_scaleway_access_key_id": "your_scaleway_access_key_id",
"transactional_emails_scaleway_secret_key": "your_scaleway_secret_key",
"transactional_emails_scaleway_region": "fr-par",
"transactional_emails_scaleway_project_id": "your_scaleway_project_id (uuid)",
"tasks_redis_addr": "localhost:6379",
"tasks_redis_password": "app_redis_password"
}