-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig-example.toml
225 lines (181 loc) · 6.43 KB
/
config-example.toml
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
# Please read the README.md before continuing.
# Name and timezone
name = "Plexactyl"
timezone = "Europe/London"
icon = "https://iili.io/dZSv0JI.png"
# Plexactyl release information
version = "18.1.2"
# Additional settings
testing = false
clusters = 1 # How many threads to use for multithreading
database = "sqlite://database.sqlite"
# Pterodactyl settings
[pterodactyl]
domain = "https://panel.example.com"
key = "PTERO_KEY"
# Webserver
[website]
port = 3_000
[servers]
allocations = 5 # 5 is recommended
# This is the amount of ports people can make (1 = no extra ports as that slot will be used by main port)
# Module settings (formerly API)
[api.client]
[api.client.api]
enabled = false
code = "API_KEY"
# Frontend for j4r is unavailable.
[api.client.j4r]
enabled = false
[[api.client.j4r.ads]]
name = "Example server 1"
invite = "https://discord.gg/example"
id = "000000000000000000"
coins = 200
[[api.client.j4r.ads]]
name = "Example server 2"
invite = "https://discord.gg/example"
id = "000000000000000000"
coins = 200
[api.client.bot]
token = "BOT_TOKEN"
[api.client.bot.joinguild]
_comment = "The Discord bot must be in 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."
enabled = true
guildid = []
[api.client.bot.giverole]
_comment = "Auto-join must be enabled for this to work - or the user must already be in your Discord. This will give the user a role when they login."
enabled = true
guildid = ""
roleid = ""
[api.client.passwordgenerator]
signup = true
note = "Use this to disable registering on Plexactyl."
length = 16
[api.client.allow]
newusers = true
regen = true
overresourcessuspend = false
[api.client.allow.server]
create = true
modify = true
delete = true
[api.client.oauth2]
_comment = "Go to https://discord.dev/ and create an application to set up OAuth2. This is required for Plexactyl to work. You must also set the redirect URL to the link below."
id = ""
secret = ""
link = "http://localhost:3000"
callbackpath = "/callback"
prompt = true
[api.client.oauth2.ip]
"trust x-forwarded-for" = true
block = [ ]
"duplicate check" = false
_note = "Anti-alt checks will not work if you are proxying through Cloudflare. This is due to the fact that Cloudflare does not pass the real IP address through the headers. If you are using Cloudflare, please disable this feature."
[api.client.ratelimits]
"/callback" = 2
"/create" = 1
"/delete" = 1
"/modify" = 1
"/updateinfo" = 1
"/setplan" = 2
"/admin" = 1
"/regen" = 1
"/renew" = 1
"/api/userinfo" = 1
[api.client.packages]
default = "default"
# Packages
[api.client.packages.list.default]
ram = 2_048
disk = 10_240
cpu = 150
servers = 2
[api.client.packages.rolePackages]
note = "This allows you to set a different plan/package to people who have a specific role however this requires the Discord bot to be configured and functioning. This is mainly used for Boost rewards."
roleServer = ""
[api.client.packages.rolePackages.roles]
[api.client.locations.1]
city = "Falkenstein"
country = "Germany"
code = "DE" # Put this also as the ISO code unless you have multiple locations in the same country
iso = "DE" # ISO Code
# Use my optimized docker images! ghcr.io/zenllc/java:21 for java 21 or ghcr.io/zenllc/java:17 for java 17!
[api.client.eggs.purpur]
display = "Purpur"
type = "MC Java"
icon = "https://purpurmc.org/images/purpur-pride.svg"
[api.client.eggs.purpur.minimum]
ram = 1_024
disk = 1_024
cpu = 100
[api.client.eggs.purpur.maximum]
[api.client.eggs.purpur.info]
egg = 5
docker_image = "ghcr.io/zenllc/java:21"
startup = "java -Xms256M -Xmx{{SERVER_MEMORY}}M {{JAVA_ARGUMENTS}} -jar {{SERVER_JARFILE}} --nogui"
[api.client.eggs.purpur.info.environment]
SERVER_JARFILE = "server.jar"
BUILD_NUMBER = "latest"
JAVA_ARGUMENTS = "--add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs/ -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 --add-modules=jdk.incubator.vector"
[api.client.eggs.purpur.info.feature_limits]
databases = 4
backups = 4
[api.client.coins]
enabled = true
[api.client.coins.store]
enabled = true
[api.client.coins.store.ram]
cost = 250
per = 1_024
[api.client.coins.store.disk]
cost = 150
per = 5_120
[api.client.coins.store.cpu]
cost = 300
per = 100
[api.client.coins.store.servers]
cost = 100
per = 2
[api.afk]
_note = "This is the 2nd-generation version of Plexactyl's AFK system. Please report any bugs on the GitHub (github.com/plexactyl/panel). Thank you."
path = "ws"
every = 60
coins = 2.5
enabled = true
[linkvertise]
_note = "This is the 2nd-generation version of Plexactyl's AFK system. Please report any bugs on the GitHub (github.com/plexactyl/panel). Thank you."
enabled = true
coins = 30
userid = "000000"
[antivpn]
note = "For this to work, generate an API Key on https://proxycheck.io/. If you do not put a key, Plexactyl will automatically disable anti-VPN."
status = false
APIKey = "Proxycheck API Key"
whitelistedIPs = [ "IP address" ]
[whitelist]
note = "This allows only specific people to be able to login to the Plexactyl dashboard. This does not affect your Panel."
status = false
users = [ "User ID" ]
[logging]
_note = "This is the 2nd-generation version of Plexactyl's logging system. Please report any bugs on the GitHub (github.com/plexactyl/panel). Thank you."
status = false
webhook = "Webhook URL"
[logging.actions.user]
signup = true
"create server" = true
"gifted coins" = true
"modify server" = true
"buy servers" = true
"buy ram" = true
"buy cpu" = true
"buy disk" = true
[logging.actions.admin]
"set coins" = true
"add coins" = true
"set resources" = true
"set plan" = true
"create coupon" = true
"revoke coupon" = true
"remove account" = true
"view ip" = true