Removing hardcoded port

Added variable
Removed hardcoded code for port
This commit is contained in:
Hendalf 2024-04-26 09:55:01 +03:00 committed by GitHub
parent 84e6fb551f
commit e7014a765c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@
"file_denylist": [],
"startup": ".\/AlderonGamesCmd-Linux --game path-of-titans --server true --beta-branch {{BETA_BRANCH}} --auth-token {{AG_AUTH_TOKEN}} --install-dir .\/server\/ && .\/server\/PathOfTitansServer.sh {{SERVER_MAP}}?listen?MaxPlayers={{SERVER_MAX_PLAYERS}} -nullRHI -ServerName={{SERVER_NAME}} -ServerGUID={{SERVER_GUID}} -BranchKey={{BETA_BRANCH}} -Database={{SERVER_DB}} -log",
"config": {
"files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"enable-query\": \"true\",\r\n \"server-port\": \"{{server.build.default.port}}\",\r\n \"query.port\": \"7778\"\r\n }\r\n }\r\n}",
"files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"enable-query\": \"true\",\r\n \"server-port\": \"{{server.build.default.port}}\",\r\n \"query.port\": \"{{QUERY_PORT}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"Server ready\"\r\n}",
"logs": "{}",
"stop": "^C"
@ -97,6 +97,16 @@
"user_editable": true,
"rules": "required|string|max:1500",
"field_type": "text"
},
{
"name": "Query port",
"description": "",
"env_variable": "QUERY_PORT",
"default_value": "7778",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric|max:8",
"field_type": "text"
}
]
}