-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.env.example
More file actions
338 lines (247 loc) · 11.8 KB
/
.env.example
File metadata and controls
338 lines (247 loc) · 11.8 KB
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
##################################
# LOGGING CONFIGURATION
##################################
# Set log level (available levels: debug, info, warn, error).
LOG_LEVEL=debug
# Enable a write log to file.
LOG_WRITE=true
# Set the directory for write a log files (if leave empty, "logs" is used).
LOG_WRITE_DIRECTORY=
# Enable API requests/responses logging.
LOG_API_REQUESTS=true
# Enable log IP addresses.
LOG_IP_ADDRESSES=false
##################################
# INTEGRATION CONFIGURATION
##################################
# Enable Steer Server session (used for Admin Panel authorization).
# For authorization with the Steer server to work, you need to
# import the "share/steer/ExportSteerData_steeradmin_API.sef" file in the
# Steer web panel, create a user and give permissions.
STEER_ENABLE=false
# Set a host and port to connect to the Steer Server Hub.
STEER_HOST=127.0.0.1
STEER_PORT=8105
# Set a host and port to connect to the Platform Hub for send requests when performing
# certain actions, such as: server test, instant benefit activation, sending premium items, etc.
HUB_HOST=127.0.0.1
HUB_PORT=11001
##################################
# ARBITER API CONFIGURATION
##################################
# Set the host for receiving connections from the Arbiter server (TERA Server).
# Use 0.0.0.0 or leave empty for bind API on all IPs (not recomended).
API_ARBITER_LISTEN_HOST=127.0.0.1
# Set the port for receiving connections from the Arbiter server.
API_ARBITER_LISTEN_PORT=8080
# Ebable reporting game activity (login and logout) to the reports database.
API_ARBITER_REPORT_ACTIVITY=true
# Enable reporting characters information (create, modify, delete) to the reports database.
API_ARBITER_REPORT_CHARACTERS=true
# Enable reporting using of chronos crolls (premium/vip/tera-club items) to the reports database.
API_ARBITER_REPORT_CHRONOSCROLLS=true
# Enable reporting cheats information to the reports database.
API_ARBITER_REPORT_CHEATS=true
# Enable Arbiter server availability check based on TCP port check.
# If such a check is disabled, the Arbiter server availability is checked only by
# requesting server status from the Platform Hub.
API_ARBITER_SERVER_PORT_CHECK=true
# Use client IP address from Launcher instead of IP address from Arbiter server.
# This may need to be enabled when using Tera Server Proxy.
# If API_PORTAL_TRUSTPROXY_ENABLE=true, the IP from the X-Forwarded-For header will be used.
API_ARBITER_USE_IP_FROM_LAUNCHER=false
##################################
# PORTAL API CONFIGURATION
##################################
# Set the host for receiving connections from the users for access to Portal or Launcher.
# Use 0.0.0.0 or leave empty for bind API on all IPs.
API_PORTAL_LISTEN_HOST=
# Set the port for receiving connections from the users for access to Portal or Launcher.
API_PORTAL_LISTEN_PORT=80
# Allow determination of client IP address based on "X-Forwarded-For" header.
# This must be enabled if a reverse proxy is used. It is also necessary to specify the reverse
# proxy IP address in parameter API_PORTAL_TRUSTPROXY_HOSTS, otherwise data spoofing is possible.
API_PORTAL_TRUSTPROXY_ENABLE=false
# List of IP addresses or subnets that should be trusted as a reverse proxy.
# Multiple entries can be listed separated by commas.
# If left empty, headers will be accepted from any IP address (not recommended!).
API_PORTAL_TRUSTPROXY_HOSTS=
# Enable caching of Portal and Launcher web server content.
API_PORTAL_ENABLE_CACHE=true
# Set language for the Portal or Launcher web interface (available locales: en, ru).
API_PORTAL_LOCALE=en
# Enable language selector in the Launcher web interface.
API_PORTAL_LOCALE_SELECTOR=true
# CHANGE IT!
# Specify the secret word required to encrypt sessions.
API_PORTAL_SECRET=your_secret_word
# Set the project brand name.
API_PORTAL_BRAND_NAME=Tera Private
# Enable In-game Shop features.
# Setup shop on game server:
# 1) Remove <Shop url="..." /> from "DeploymentConfig.xml".
# 2) Set the endpoint in "config_arb_gw.txt" as:
# web_shop_url=http://YOUR_API_PORTAL_HOST/tera/ShopAuth?authKey=%s
API_PORTAL_SHOP_ENABLE=true
# Set the initial balance value of In-game Shop account on user registration.
# Set 0 as value or remove/comment parameter to disable this.
API_PORTAL_SHOP_INITIAL_BALANCE=0
# Set the ID of the benefit that will be activated for the VIP/premium status.
# See StrSheet_AccountBenefit for more details about available IDs.
# If leave empty, the ID 433 (TERA Club) will be used.
API_PORTAL_BENEFIT_ID_ELITE_STATUS=433
# Set the initial benefits that will be assigned to the user on registration.
# The value indicates the number of days the benefit is valid.
# Set 0 as value or remove/comment parameter to disable the benefit.
API_PORTAL_INITIAL_BENEFIT_ID_433_DAYS=30 # TERA Club
API_PORTAL_INITIAL_BENEFIT_ID_434_DAYS=3600 # Veteran
# Enable public directory for static files (needed for Launcher static files).
# Also, this directory can be used to place Launcher and Client update files.
API_PORTAL_PUBLIC_FOLDER_ENABLE=true
# Enable a CAPTCHA for validation during registration.
API_PORTAL_CAPTCHA_ENABLE=true
# Set the privilege number that has access to Launcher QA functions.
API_PORTAL_LAUNCHER_QA_PRIVILEGE=10
# Set the default region name for Client started with Launcher (e.g. EUR, RUS, TW).
API_PORTAL_CLIENT_DEFAULT_REGION=EUR
# Set a list of supported regions by Client with language names.
API_PORTAL_CLIENT_REGIONS_EUR=English
API_PORTAL_CLIENT_REGIONS_RUS=Русский
API_PORTAL_CLIENT_REGIONS_TW=中国人
# Set the URL address for placing Client and Launcher updates files.
# If leave it empty, the "/public/patch" root will be used.
API_PORTAL_CLIENT_PATCH_URL=
# Disable automatic client enter to the game server.
API_PORTAL_DISABLE_CLIENT_AUTO_ENTER=false
# Disable launcher and launcher API (BHS).
API_PORTAL_LAUNCHER_DISABLE=false
# Disable built-in register feature in the launcher.
API_PORTAL_LAUNCHER_DISABLE_REGISTRATION=false
# Enable built-in email confirmation and password reset functions.
API_PORTAL_LAUNCHER_ENABLE_EMAIL_VERIFY=false
# Disable checking of client files when the game start.
# This does not affect the process of receiving client updates.
API_PORTAL_LAUNCHER_DISABLE_CONSISTENCY_CHECK=false
# Enable the client file check disallow.
# If set to true, the launcher will not check for client updates.
API_PORTAL_CLIENT_PATCH_NO_CHECK=true
# Enable sha512 password hashing when storing in database.
API_PORTAL_USE_SHA512_PASSWORDS=false
# Set the salt to calculate the sha512 hash (not used by default).
API_PORTAL_USE_SHA512_PASSWORDS_SALT=
# Outgoing mail sender name.
API_PORTAL_EMAIL_FROM_NAME=Server Administrator
# Outgoing mail sender email address.
##################################
# GATEWAY API CONFIGURATION
##################################
# Set the host for receiving connections from the external website (like billing).
# Use 0.0.0.0 or leave empty for bind API on all IPs (not recomended).
API_GATEWAY_LISTEN_HOST=127.0.0.1
# Set the port for receiving connections from the external website.
API_GATEWAY_LISTEN_PORT=8040
##################################
# ADMIN PANEL CONFIGURATION
##################################
# Set the host for receiving connections for access to Admin Panel.
# Use 0.0.0.0 or leave empty for bind API on all IPs.
ADMIN_PANEL_LISTEN_HOST=
# Set the port for receiving connections for access to Admin Panel.
ADMIN_PANEL_LISTEN_PORT=8050
# Allow determination of client IP address based on "X-Forwarded-For" header.
# This must be enabled if a reverse proxy is used. It is also necessary to specify the reverse
# proxy IP address in parameter API_PORTAL_TRUSTPROXY_HOSTS, otherwise data spoofing is possible.
ADMIN_PANEL_TRUSTPROXY_ENABLE=false
# List of IP addresses or subnets that should be trusted as a reverse proxy.
# Multiple entries can be listed separated by commas.
# If left empty, headers will be accepted from any IP address (not recommended!).
ADMIN_PANEL_TRUSTPROXY_HOSTS=
# Set language for the Admin Panel (available locales: en, ru).
ADMIN_PANEL_LOCALE=en
# CHANGE IT!
# Specify the secret word required to encrypt authorization sessions.
ADMIN_PANEL_SECRET=your_secret_word
# Set login for QA administrator (only for Admin Panel tests).
# QA administrator account only available if option "STEER_ENABLE" is set to "false".
ADMIN_PANEL_QA_USER=apiadmin
# Set password for QA administrator.
ADMIN_PANEL_QA_PASSWORD=password
##################################
# MAILER CONFIGURATION
##################################
# Set the host to connect to the SMTP server.
MAILER_SMTP_HOST=
# Set the port to connect to the SMTP server.
MAILER_SMTP_PORT=587
# Enabling encryption of connections to the SMTP server.
MAILER_SMTP_SECURE=false
# Account name for authorization on the SMTP server.
MAILER_SMTP_AUTH_USER=
# Account password for authorization on the SMTP server.
MAILER_SMTP_AUTH_PASSWORD=
##################################
# DATASHEET CONFIGURATION
##################################
# Enable binary DataCenter mode.
# If true, the "DataCenter_Final_<region>.dat" file from the "data/datasheets"
# directory will be used (where <region>: "EUR", "RUS", etc.).
# If false, the unpacked XML files from the "data/datasheets/<locale>"
# directory will be used (where <locale>: "en", "ru", etc.).
DATASHEET_USE_BINARY=true
# Enable if "DataCenter_Final_<region>.dat" files are compressed.
DATASHEET_DATACENTER_IS_COMPRESSED=true
# Enable if 64-bit version of "DataCenter_Final_<region>.dat" files is used.
DATASHEET_DATACENTER_HAS_PADDING=true
# Set Key for decrypting files "DataCenter_Final_<region>.dat".
# Leave empty if the datacenter file is not encrypted.
DATASHEET_DATACENTER_KEY=1c01c904ff76ff06c211187e197b5716
# Set IV for decrypting files "DataCenter_Final_<region>.dat".
# Leave empty if the datacenter file is not encrypted.
DATASHEET_DATACENTER_IV=396c342c52a0c12d511dd0209f90ca7d
##################################
# DATABASE CONFIGURATION (MYSQL)
##################################
# Set a host to connect to database.
DB_HOST=127.0.0.1
# Set a port to connect to database.
DB_PORT=3306
# Set the name of database.
DB_DATABASE=teraapi
# Set the user to connect to database.
DB_USERNAME=root
# Set the password to connect to database.
DB_PASSWORD=
##################################
# PLANETDB DATABASE CONFIGURATION (SQL SERVER)
#
# Game server database, used for API purposes (such as characters sync).
# The parameters are specified in the format "DB_PLANETDB_<ServerID>_",
# where <ServerID> is the identifier of the game server.
##################################
# Example configuration for server ID 2800:
# Enable connect and using the database.
DB_PLANETDB_2800_ENABLED=false
# Set a host to connect to database.
DB_PLANETDB_2800_HOST=127.0.0.1
# Set a port to connect to database.
DB_PLANETDB_2800_PORT=1433
# Set the name of database.
DB_PLANETDB_2800_DATABASE=PlanetDB_2800
# Set the user to connect to database.
DB_PLANETDB_2800_USERNAME=sa
# Set the password to connect to database.
DB_PLANETDB_2800_PASSWORD=
##################################
# IPAPI.IS CLIENT CONFIGURATION
##################################
# List of API keys to submit requests to, must be separated by commas.
# If left blank, the request will be submitted without an API key.
# To get a free API key, go here https://ipapi.is/app/signup
IPAPI_API_KEYS=
# Set the query cache lifetime (seconds).
IPAPI_CACHE_TTL=86400 # 24 hours
# Set the time to wait for a response to a request (seconds).
IPAPI_REQUEST_TIMEOUT=3
# Set the number of attempts to retry a request in case of a timeout.
IPAPI_REQUEST_MAX_RETRIES=3