-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge feature/environment-configuration from thmsn's fork
- Loading branch information
Showing
14 changed files
with
130 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/secrets.py | ||
/environment.py | ||
/node/live_variables.js | ||
/node/variables.js | ||
/stack/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
{% elif content=="contact"%} | ||
You can always email me at [email protected] | ||
|
||
Also check out our <a class="eexternal" href="https://discord.gg/44yUVeU" target="_blank" style="border-color: #3386CF">Discord!</a> - You can PM Wizard on Discord for faster and more informal replies :) | ||
Also check out our <a class="eexternal" href="{{domain.discord_url}}" target="_blank" style="border-color: #3386CF">Discord!</a> - You can PM Wizard on Discord for faster and more informal replies :) | ||
{%endif%} | ||
</div> | ||
</td></tr> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
GAME_NAME = "Adventure Land" | ||
APPENGINE_ID = "twodimensionalgame" | ||
DOMAIN_NAME = "adventure.land" | ||
#IMPORTANT: SPECIAL PAGE RULES ARE NEEDED: https://dash.cloudflare.com/b6f5a13bded5fdd273e4a1cd3777162d/adventure.land/page-rules - uss1 / eus1 was best | ||
IP_TO_SUBDOMAIN = { | ||
"35.187.255.184":"asia1", | ||
"35.246.244.105":"eu1", | ||
"35.228.96.241":"eu2", | ||
"35.234.72.136":"eupvp", | ||
"35.184.37.35":"us1", | ||
"34.67.188.57":"us2", | ||
"34.75.5.124":"us3", | ||
"34.67.187.11":"uspvp", | ||
"195.201.181.245":"eud1", | ||
"158.69.23.127":"usd1" | ||
} | ||
|
||
# This is currently only used in SDK mode to map the hostname | ||
REQUEST_IP_TO_HOSTNAME = { | ||
"172.20.0.4":"localhost", #EU1 docker internal ip | ||
"172.20.0.3":"localhost", #US1 docker internal ip | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
module.exports = { | ||
cfunctions_path: "./server/common_functions.js", | ||
functions_path: "./server/server_functions.js", | ||
worker_path: "./server/server_worker.js", | ||
data_path: "./server/data.js", | ||
base_url: "https://yourappspoturldontincludedashes.appspot.com", | ||
keyword: "123", | ||
access_master: "123", | ||
bot_key: "123", | ||
discord_token: "NDXXXXXXXXXXX...", | ||
apple_token: "acXXXXXXXX...", | ||
steam_key: "8aXXXXXXXXX...", | ||
steam_web_key: "B4XXXXXXX...", | ||
steam_partner_key: "F9XXXXXXX...", | ||
close_timeout: 24000, | ||
ip_limit: 3, | ||
character_limit: 3, | ||
cfunctions_path: "./server/common_functions.js", | ||
functions_path: "./server/server_functions.js", | ||
worker_path: "./server/server_worker.js", | ||
data_path: "./server/data.js", | ||
base_url: "https://yourappspoturldontincludedashes.appspot.com", | ||
keyword: "123", | ||
access_master: "123", | ||
bot_key: "123", | ||
apple_token: "acXXXXXXXX...", | ||
steam_key: "8aXXXXXXXXX...", | ||
steam_web_key: "B4XXXXXXX...", | ||
steam_partner_key: "F9XXXXXXX...", | ||
close_timeout: 24000, | ||
ip_limit: 3, | ||
character_limit: 3, | ||
DISCORD: { | ||
ENABLED: false, | ||
TOKEN: "NDXXXXXXXXXXX", | ||
EVENT_CHANNELS: { | ||
DEFAULT: "https://discordapp.com/api/channels/404333059018719233/messages", | ||
NEW_PLAYER: "https://discordapp.com/api/channels/839163123499794481/messages", | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
const path = require("node:path"); | ||
|
||
module.exports = { | ||
cfunctions_path: path.resolve(__dirname, "../js/common_functions.js"), | ||
functions_path: path.resolve(__dirname, "server_functions.js"), | ||
worker_path: path.resolve(__dirname, "server_worker.js"), | ||
data_path: path.resolve(__dirname, "data.js"), | ||
base_url: "http://thegame.com", | ||
keyword: "123", | ||
access_master: "123", | ||
bot_key: "123", | ||
discord_token: "NDXXXXXXXXXXX...", | ||
apple_token: "acXXXXXXXX...", | ||
steam_key: "8aXXXXXXXXX...", | ||
steam_web_key: "B4XXXXXXX...", | ||
steam_partner_key: "F9XXXXXXX...", | ||
is_sdk: 1, | ||
close_timeout: 4000, | ||
ip_limit: 3, | ||
character_limit: 3, | ||
fast_sdk: 0, | ||
cfunctions_path: path.resolve(__dirname, "../js/common_functions.js"), | ||
functions_path: path.resolve(__dirname, "server_functions.js"), | ||
worker_path: path.resolve(__dirname, "server_worker.js"), | ||
data_path: path.resolve(__dirname, "data.js"), | ||
base_url: "http://thegame.com", | ||
keyword: "123", | ||
access_master: "123", | ||
bot_key: "123", | ||
apple_token: "acXXXXXXXX...", | ||
steam_key: "8aXXXXXXXXX...", | ||
steam_web_key: "B4XXXXXXX...", | ||
steam_partner_key: "F9XXXXXXX...", | ||
is_sdk: 1, | ||
close_timeout: 4000, | ||
ip_limit: 3, | ||
character_limit: 3, | ||
fast_sdk: 0, | ||
DISCORD: { | ||
ENABLED: false, | ||
TOKEN: "NDXXXXXXXXXXX", // Your discord applications bot token | ||
EVENT_CHANNELS: { | ||
DEFAULT: "https://discordapp.com/api/channels/404333059018719233/messages", // #game_events | ||
NEW_PLAYER: "https://discordapp.com/api/channels/839163123499794481/messages", // #new_players | ||
}, | ||
}, | ||
|
||
// mode variable in server.js can be overridden here | ||
MODE: { | ||
drm_check: 0, // Enable steam/mac DRM check, prevents authfail debuff being added if disabled | ||
notverified_debuff: 0, // disables the debuff for not being verified | ||
}, | ||
}; |