Files
openaccounting-server/config.json.sample

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-10-19 15:31:41 -04:00
{
"_comment_config": "OpenAccounting Server Configuration - now supports Viper for multiple config sources",
"_comment_viper": "You can override any setting with environment variables using OA_ prefix (e.g., OA_PASSWORD, OA_MAILGUN_KEY)",
2018-10-19 15:31:41 -04:00
"WebUrl": "https://domain.com",
"Address": "localhost",
2018-10-19 15:31:41 -04:00
"Port": 8080,
"ApiPrefix": "/api/v1",
2018-10-19 15:31:41 -04:00
"KeyFile": "",
"CertFile": "",
"_comment_database": "Database configuration - choose 'sqlite' for local testing or 'mysql' for production",
"DatabaseDriver": "sqlite",
"DatabaseFile": "./data/openaccounting.db",
"DatabaseAddress": "localhost:3306",
2018-10-19 15:31:41 -04:00
"Database": "openaccounting",
"User": "openaccounting",
"Password": "",
"_comment_password": "SECURITY: Set password via OA_PASSWORD environment variable instead of this file",
"_comment_mailgun": "Mailgun configuration for email sending",
2020-11-23 11:13:23 -05:00
"MailgunDomain": "mg.domain.com",
"MailgunKey": "",
"_comment_mailgun_key": "SECURITY: Set Mailgun key via OA_MAILGUN_KEY environment variable",
2020-11-23 11:13:23 -05:00
"MailgunEmail": "noreply@domain.com",
"MailgunSender": "Sender",
"_comment_env_examples": "Environment variable examples:",
"_example_development": "OA_DATABASE_DRIVER=sqlite OA_DATABASE_FILE=./dev.db ./server",
"_example_production": "OA_DATABASE_DRIVER=mysql OA_PASSWORD=secret OA_MAILGUN_KEY=key-123 ./server"
}