99#
1010# Docs: https://docs.orume.id/documentations/orume-api/introduction
1111# Copyright (c) 2022 - Orume Studios
12- licenseKey : " hohoho "
12+ licenseKey : " YOUR_LICENSE_KEY "
1313system :
14- cronSchedule : " "
15- dataPath : " ./data "
14+ # Temporary / Logs filepath
15+ tempPath : " ./temp "
1616 orumeApi :
17- configFile : " ./config.yml"
18- serverPort : 20202
17+ # Max thread to be used for the api
18+ maxThreads : 6
19+ serverPort : 8080
20+ # Forwards real ip address, if trustedProxies contains proxy's ip
21+ trustedProxies : [ "PROXY_IPV4_OR_IPV6" ]
1922 database :
23+ # options: sqlite, mysql, postgres, sqlserver, clickhouse
24+ # recommended: mysql
2025 dialect : " mysql"
21- localPath : " test.sq"
2226 param : " charset=utf8&parseTime=true"
2327 credentials :
2428 username : " YOUR_DATABASE_USERNAME"
2529 password : " YOUR_DATABASE_PASSWORD"
2630 host : " YOUR_DATABASE_HOST"
2731 port : " YOUR_DATABASE_PORT"
2832 databaseName : " YOUR_DATABASE_NAME"
33+ # reference: https://gorm.io/docs/gorm_config.html#content-inner
2934 gormConfig :
30- skipDefaultTransaction : false
35+ skipDefaultTransaction : true
3136 fullSaveAssociations : false
3237 dryRun : false
33- prepareStmt : false
38+ prepareStmt : true
3439 disableAutomaticPing : false
3540 disableForeignKeyConstraintWhenMigrating : false
3641 disableNestedTransaction : false
@@ -39,62 +44,76 @@ system:
3944 createBatchSize : 1024
4045 logger : true
4146 authentication :
47+ # the default admin user for authentication
4248 defaultUser :
4349 username : admin
4450 password : YOUR_ADMIN_PASSWORD
51+ # max session per authentication session in seconds
4552 sessionTime : 300
53+ # the JWT Secret Key for Authentication
4654 secretKey : YOUR_SECRET_KEY
55+ # the Encryption Key for database data encryptions, PLEASE DO NOT LOSE IT AT ALL COST!
4756 encryptionKey : YOUR_ENCRYPTION_KEY
4857modules :
4958 license :
5059 enable : true
5160 modelName : license_models
61+ hardwareTimeRemoval : 60
62+ hardwareTimeOut : 120
5263 path : /license
53- wallet :
54- enable : true
64+
5565middlewares :
5666 underAttack :
5767 enable : false
5868 maxConnections : 1000
59- timeRemoval : 1
69+ timeRemoval : 100
70+ logAttack : true
71+ whitelistedIps : ["WHITELISTED-IP"]
72+ userAgents : ["USER-AGENT"]
6073 rateLimit :
6174 enable : false
6275 whitelistedIps : ["127.0.0.1"]
6376 maxIpAddresses : 1000
6477 limits :
6578 second :
6679 enable : true
80+ # max request per second
6781 maxRequest : 10
68- coolDown : 120
82+ # cooldown in seconds
83+ coolDown : 12
6984 minute :
7085 enable : true
86+ # max request per minute
7187 maxRequest : 50
88+ # cooldown in seconds
7289 coolDown : 20
7390 hour :
7491 enable : false
92+ # max request per second
7593 maxRequest : 10
94+ # cooldown in seconds
7695 coolDown : 10
7796 day :
7897 enable : false
98+ # max request per day
7999 maxRequest : 10
100+ # cooldown in seconds
80101 coolDown : 10
81102 userAgent :
82103 all :
83104 enable : false
84- enableOnUnderAttack : false
85- userAgents : ["PostmanRuntime/7.29.0"]
105+ userAgents : [""]
86106 admin :
87107 enable : false
88- userAgents : ["PostmanRuntime/7.29.0 "]
108+ userAgents : [""]
89109 ipWhitelist :
90110 all :
91111 enable : false
92- enableOnUnderAttack : true
93- whitelistedIps :
94- - " 118.99.110.226"
112+ whitelistedIps : [""]
113+ blacklistedIps : [""]
95114 admin :
96115 enable : false
97- whitelistedIps :
98- - ' ::1 '
116+ whitelistedIps : [""]
117+ blacklistedIps : [""]
99118 logger :
100119 enable : true
0 commit comments