Skip to content

Commit

Permalink
define only required configuration section
Browse files Browse the repository at this point in the history
  • Loading branch information
muharihar committed Nov 16, 2020
1 parent 5e386af commit 0f1b9fe
Showing 1 changed file with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions conf/config-sample.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
# Environment
environment:
stage: "DEVELOPMENT" # DEVELOPMENT, TEST, STAGING, PRODUCTION
runTestEnvironment: ["DEVELOPMENT"]
stage: "DEVELOPMENT" # LOCAL, DEVELOPMENT, TEST, STAGING, PRODUCTION
runTestEnvironment: ["LOCAL", "DEVELOPMENT", "TEST"]

# Applications
applications:
Expand Down Expand Up @@ -59,30 +59,6 @@ databases:
maxIdleConns: 10
maxOpenConns: 10
logMode: true # shoud be "false" on production
logDB:
connectionName: "db-log"
driver: "mysql" # mysql, postgres, sqlserver, sqlite3
# mysql
username: "d3ta"
password: "d3ta"
hostName: "127.0.0.1:3306" # hostname:port OR path
dbName: "a_d3ta_logs"
config: "charset=utf8&parseTime=True&loc=Local"
maxIdleConns: 10
maxOpenConns: 10
logMode: true # shoud be "false" on production
emailDB:
connectionName: "db-email"
driver: "mysql" # mysql, postgres, sqlserver, sqlite3
# mysql
username: "d3ta"
password: "d3ta"
hostName: "127.0.0.1:3306" # hostname:port OR path
dbName: "a_d3ta_email"
config: "charset=utf8&parseTime=True&loc=Local"
maxIdleConns: 10
maxOpenConns: 10
logMode: true # shoud be "false" on production

# IAM
IAM:
Expand All @@ -104,14 +80,6 @@ IAM:
defaultEnforcerID: "default-casbin-enforcer"
systemEnforcerID: "system-casbin-enforcer"

# securities
securities:
captcha:
keyLong: 4
imgWidth: 120
imgHeight: 40
imgUrl: "http://%s/system/captcha/image/%s.png"

# Directory Locations
dirLocations:
conf: "./conf"
Expand Down

0 comments on commit 0f1b9fe

Please sign in to comment.