Added ability to define custom port ranges the WebHost will use for game servers, instead of pure random.

This commit is contained in:
Lexipherous
2023-08-30 22:54:37 +01:00
parent 2b9e8fa273
commit b326045cb7
4 changed files with 43 additions and 7 deletions

View File

@@ -29,6 +29,7 @@ app.config["SELFLAUNCHKEY"] = None # can point to a SSL Certificate Key to encr
app.config["SELFGEN"] = True # application process is in charge of scheduling Generations.
app.config["DEBUG"] = False
app.config["PORT"] = 80
app.config["GAME_PORTS"] = "49152-65535"
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
app.config['MAX_CONTENT_LENGTH'] = 64 * 1024 * 1024 # 64 megabyte limit
# if you want to deploy, make sure you have a non-guessable secret key