forked from OpenHeliactyl/Heliactyl
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsettings_example.yml
292 lines (269 loc) · 7.14 KB
/
settings_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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
dev: false
version: "12.8.0-prealpha-3"
name: "Heliactyl"
letter: "H"
# It's recommended to use an image of size 128x128 pixels. And for the thumbnail discord modify in handlers/log.js
icon: "https://avatars.githubusercontent.com/u/122883790"
theme: "default"
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones (tz identifier).
timezone: "Europe/Paris"
resources:
# Options: MB, GB. This is only used on the user side, admin will use GB.
typeRessources: "MB"
# Options: Core, %. This is only used on the userside, admin will use Core
typeCPU: "Core"
website:
port: 25002
secret: "Default Secret (Change this to any string you want)"
pterodactyl:
domain: "https://panel.example.com"
key: "ptla_0000000000000000000000000000000000000000000"
stripe:
enabled: true
# The key is the Stripe API key, and the coins are the amount per 1 in your currency. If the Stripe API key is invalid and Stripe purchases are enabled, Heliactyl will crash when attempting to do transactions.
key: "100000000000000"
coins: 100
currency: "eur" # https://docs.stripe.com/currencies
category:
management: true
coins & resources: true
miscellaneous: true
pages:
# Management
dashboard: true
your servers: true
account settings: true
# Coins & Resources
redeem coupon: true
# Category miscellaneous
panel: true
admin: true
adsense:
# Works only halfway, unreliable, better to add it directly to the code
# This feature facilitates the integration of AdSense, adsterra, and other similar applications into Heliactyl.
enabled: false
script: ''
database: "database.sqlite"
api:
enabled: true
code: "Default APIKEY (Change this to any string you want)"
j4r:
enabled: true
ads:
- name: "Example Server 1"
id: "000000000000000000"
invite: "https://discord.gg/example1"
coins: 100
- name: "Example Server 2"
id: "000000000000000000"
invite: "https://discord.gg/example2"
coins: 200
bot:
token: "Discord bot token here"
joinguild:
enabled: true
# The Discord bot must be on these servers and have invite permissions. Automatic guild joining will not work unless role packages are configured correctly. You can always just set it to a random role & package so that only this works.
guildid:
- "Guild ID 1"
giverole: # The Discord bot must be on the server. Automatically assign a role to the user when he logs in
enabled: true
guildid: "000000000000000000"
roleid: "000000000000000000"
oauth2: # Go to https://discord.dev/ and create an application to set these up
id: "0000000000000000000"
secret: "0000000000000000000000000000"
link: "https://client.example.com"
callbackpath: "/callback"
prompt: true
ip:
trust x-forwarded-for: true
block: []
duplicate check: true
blacklist:
status: true
users: # If you want to blacklist a user, just set their Discord ID, and they will be blacklisted.
- "000000000000000000"
- "000000000000000000"
whitelist:
status: false
users:
- "000000000000000000"
- "000000000000000000"
passwordgenerator:
signup: true # Use this to disable signups
length: 16
allow:
newusers: true
regen: true
server:
create: true
modify: true
delete: true
overresourcessuspend: false
ratelimits:
/callback: 2 #Utils
/submitlogin: 2
/dashboard: 2
/panel: 2
/logout: 1
/create: 1
/delete: 1
/modify: 1
/redeem: 1 #Pages
/servers: 1
/servers/new: 2
/servers/edit: 2
/settings: 1
/store: 1
/buy: 1
/j4r: 1
/afk: 1
/admin: 1
/buycoins: 1 #Routes
/buyram: 1
/buydisk: 1
/buycpu: 1
/buyservers: 1
/updateinfo: 1
/coupon_redeem: 1
/regen: 1
/renew: 1
/setcoins: 2
/addcoins: 2
/setresources: 2
/addresources: 2
/stats: 2
/setplan: 2
/create_coupon: 2
/revoke_coupon: 2
/remove_account: 2
/getip: 2
/userinfo: 2
/api/userinfo: 3
/api/setcoins: 3
/api/createcoupon: 3
/api/revokecoupon: 3
/api/setplan: 3
/api/setresources: 3
/api/renewalstatus: 3
packages:
default: default
list:
default:
ram: 1024
disk: 1024
cpu: 100
servers: 1
rolePackages:
# This allows you to set a different plan for people who have a specific role however this requires the Discord bot to be configured and functioning. This is mainly used to Boost rewards.
roleServer: Server ID
roles:
Role ID: Package Name
locations:
'1':
name: Default Location 1
package: null
'2':
name: Default Location 2
package: null
eggs:
bungeecord:
display: Minecraft Java | BungeeCord # Please switch to Velocity
minimum:
ram: 512
disk: 512
cpu: 75
maximum:
ram: null
disk: null
cpu: null
info:
egg: 4
docker_image: ghcr.io/pterodactyl/yolks:java_17
startup: "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}"
environment:
BUNGEE_VERSION: "latest"
SERVER_JARFILE: "bungeecord.jar"
feature_limits:
databases: 4
backups: 4
paper:
display: Minecraft Java | Paper # Please switch to Velocity
minimum:
ram: 1024
disk: 1024
cpu: 100
maximum:
ram: null
disk: null
cpu: null
info:
egg: 1
docker_image: ghcr.io/pterodactyl/yolks:java_17
startup: "java -Xms128M -Xmx{{SERVER_MEMORY}}M -Dterminal.jline=false -Dterminal.ansi=true -jar {{SERVER_JARFILE}}"
environment:
BUILD_NUMBER: "latest"
SERVER_JARFILE: "bungeecord.jar"
feature_limits:
databases: 4
backups: 4
coins:
enabled: true
store:
enabled: true
ram:
cost: 100
per: 1024
disk:
cost: 100
per: 5120
cpu:
cost: 100
per: 75
servers:
cost: 100
per: 2
storelimits:
ram: 8192
disk: 10240
cpu: 400
servers: 8
afk page:
enabled: true
every: 5 # This afk page will give the users [coins variable] coins every [every variable] seconds.
coins: 1 # The coins variable is meant to not be under 1. There may be bugs if the coins variable is less than 1.
servercreation:
cost: 0
renewals:
# It's not advisable to use the renewals system, as it's unstable and doesn't work all the time.
# The cost is the amount of coins required to renew, and the delay is the amount of days before they need to renew. New servers after the first one will also cost the renewal amount. This has been fixed to suspend servers instead of deleting them as of v12.7.0.
status: false
cost: 0
delay: 14
logging:
status: false
webhook: "Webhook URL"
actions:
user:
signup: true
created server: true
deleted server: true
coupon redeemed: true
modify server: true
resources purchased: true
admin:
set coins: true
add coins: true
add resources: true
set resources: true
set plan: true
create coupon: true
revoke coupon: true
remove account: true # Remove account hasn't been defined so it's useless but I'll add a system to use it.
view ip: true # View ip hasn't been defined so it's useless but I'll add a system to use it.
antivpn:
status: false
APIKey: "Proxycheck APIKey"
whitelistedIPs:
- "IP Address"
- "IP Address"