-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_sample.yml
More file actions
68 lines (62 loc) · 2.2 KB
/
config_sample.yml
File metadata and controls
68 lines (62 loc) · 2.2 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
# MailBear Configuration
# Database-only mode - all forms are managed through the web dashboard
# Server settings
port: 1234
metrics_port: 9090
log_level: "INFO"
debug: false
# Security settings
security:
dashboard_password: "change_this_to_a_secure_random_string"
jwt_secret: "change_this_to_a_secure_random_string"
jwt_algorithm: "HS256"
access_token_expire_minutes: 1440 # 24 hours
rate_limit: 5 # requests per minute
cors_allow_origins: ["*"]
# Database Configuration (Required)
database:
host: localhost
port: 3306
username: mailbear
password: password
dbname: mailbear
echo: false # SQL query logging
# SMTP Configuration
smtp:
host: smtp.example.com
port: 587
username: your_username
password: your_password
from_email: forms@example.com
# Email encryption options
use_tls: null # Set to true for SSL/TLS or null to auto-detect based on port
start_tls: null # Set to true for STARTTLS or null to auto-detect based on port
verify_cert: true # Set to false to disable SSL certificate verification (not recommended)
ssl_context: null # Advanced SSL context settings
timeout: 60 # Connection timeout in seconds
# hCaptcha Configuration (Optional)
hcaptcha:
enabled: false # Set to true to enable global hCaptcha support
site_key: "your_hcaptcha_site_key_here" # Get from hCaptcha dashboard
secret_key: "your_hcaptcha_secret_key_here" # Get from hCaptcha dashboard
api_url: "https://hcaptcha.com/siteverify" # hCaptcha API endpoint
timeout: 10 # API request timeout in seconds
invisible: false # Always Challenge mode (recommended for security)
# Note: MailBear now operates in database-only mode. All forms are created and managed
# through the web dashboard at http://localhost:1234/forms
#
# Features available in database mode:
# - Multiple email recipients per form
# - Multi-step forms
# - Advanced form validation
# - Comprehensive analytics
# - Form templates
# - API key management
# - hCaptcha integration for spam protection
#
# To get started:
# 1. Set up your database configuration above
# 2. Run: python init_db.py
# 3. Create an admin user: python create_admin.py
# 4. (Optional) Configure hCaptcha keys above
# 5. Access the dashboard at http://localhost:1234