This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yml
119 lines (118 loc) · 3.92 KB
/
config.example.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#
#
# ██████╗ ██████╗ ██╗ ██╗███╗ ███╗███████╗ █████╗ ██████╗ ██╗
# ██╔═══██╗██╔══██╗██║ ██║████╗ ████║██╔════╝ ██╔══██╗██╔══██╗██║
# ██║ ██║██████╔╝██║ ██║██╔████╔██║█████╗ ███████║██████╔╝██║
# ██║ ██║██╔══██╗██║ ██║██║╚██╔╝██║██╔══╝ ██╔══██║██╔═══╝ ██║
# ╚██████╔╝██║ ██║╚██████╔╝██║ ╚═╝ ██║███████╗ ██║ ██║██║ ██║
# ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
#
# Docs: https://docs.orume.id/documentations/orume-api/introduction
# Copyright (c) 2022 - Orume Studios
licenseKey: "YOUR_LICENSE_KEY"
system:
# Temporary / Logs filepath
tempPath: "./temp"
orumeApi:
# Max thread to be used for the api
maxThreads: 6
serverPort: 8080
# Forwards real ip address, if trustedProxies contains proxy's ip
trustedProxies: [ "PROXY_IPV4_OR_IPV6" ]
database:
# options: sqlite, mysql, postgres, sqlserver, clickhouse
# recommended: mysql
dialect: "mysql"
param: "charset=utf8&parseTime=true"
credentials:
username: "YOUR_DATABASE_USERNAME"
password: "YOUR_DATABASE_PASSWORD"
host: "YOUR_DATABASE_HOST"
port: "YOUR_DATABASE_PORT"
databaseName: "YOUR_DATABASE_NAME"
# reference: https://gorm.io/docs/gorm_config.html#content-inner
gormConfig:
skipDefaultTransaction: true
fullSaveAssociations: false
dryRun: false
prepareStmt: true
disableAutomaticPing: false
disableForeignKeyConstraintWhenMigrating: false
disableNestedTransaction: false
allowGlobalUpdate: false
queryFields: false
createBatchSize: 1024
logger: true
authentication:
# the default admin user for authentication
defaultUser:
username: admin
password: YOUR_ADMIN_PASSWORD
# max session per authentication session in seconds
sessionTime: 300
# the JWT Secret Key for Authentication
secretKey: YOUR_SECRET_KEY
# the Encryption Key for database data encryptions, PLEASE DO NOT LOSE IT AT ALL COST!
encryptionKey: YOUR_ENCRYPTION_KEY
modules:
license:
enable: true
modelName: license_models
hardwareTimeRemoval: 60
hardwareTimeOut: 120
path: /license
middlewares:
underAttack:
enable: false
maxConnections: 1000
timeRemoval: 100
logAttack: true
whitelistedIps: ["WHITELISTED-IP"]
userAgents: ["USER-AGENT"]
rateLimit:
enable: false
whitelistedIps: ["127.0.0.1"]
maxIpAddresses: 1000
limits:
second:
enable: true
# max request per second
maxRequest: 10
# cooldown in seconds
coolDown: 12
minute:
enable: true
# max request per minute
maxRequest: 50
# cooldown in seconds
coolDown: 20
hour:
enable: false
# max request per second
maxRequest: 10
# cooldown in seconds
coolDown: 10
day:
enable: false
# max request per day
maxRequest: 10
# cooldown in seconds
coolDown: 10
userAgent:
all:
enable: false
userAgents: [""]
admin:
enable: false
userAgents: [""]
ipWhitelist:
all:
enable: false
whitelistedIps: [""]
blacklistedIps: [""]
admin:
enable: false
whitelistedIps: [""]
blacklistedIps: [""]
logger:
enable: true