-
Notifications
You must be signed in to change notification settings - Fork 15
/
.env.example
211 lines (154 loc) · 7.27 KB
/
.env.example
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
##################################
# LOGGING CONFIGURATION
##################################
# Set log level (available levels: debug, info, warn, error).
LOG_LEVEL=info
# 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
# Allow IP addresses specified in the X-Forwarded-For header (to work behind a front-end proxy).
LOG_IP_ADDRESSES_FORWARDED_FOR=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
# 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 LOG_IP_ADDRESSES_FORWARDED_FOR=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
# 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 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 533 (RU VIP) will be used.
API_PORTAL_BENEFIT_ID_ELITE_STATUS=533
# 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_533_DAYS=30 # RU VIP
API_PORTAL_INITIAL_BENEFIT_ID_534_DAYS=3600 # RU Founder
API_PORTAL_INITIAL_BENEFIT_ID_1000_DAYS=3600 # PC Cafe
# 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 reCAPTCHA service for validation during registration.
API_PORTAL_RECAPTCHA_ENABLE=false
# Set the site key of the reCAPTCHA service.
API_PORTAL_RECAPTCHA_SITE_KEY=
# Set the secret key of the reCAPTCHA service.
API_PORTAL_RECAPTCHA_SECRET_KEY=
# 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 built-in register feature in the launcher.
API_PORTAL_LAUNCHER_DISABLE_REGISTRATION=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=
##################################
# 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
# 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
##################################
# DATABASE CONFIGURATION
##################################
# 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=