Move the default port to 16880.

1688 is used by MS KMS.
This commit is contained in:
Dan Albert 2022-03-07 17:56:10 -08:00
parent baae65919f
commit ca640ebabe
4 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
import { ConfigFile } from "@rtk-query/codegen-openapi"; import { ConfigFile } from "@rtk-query/codegen-openapi";
const config: ConfigFile = { const config: ConfigFile = {
schemaFile: "http://[::1]:1688/openapi.json", schemaFile: "http://[::1]:16880/openapi.json",
apiFile: "./src/api/baseApi.ts", apiFile: "./src/api/baseApi.ts",
apiImport: "baseApi", apiImport: "baseApi",
outputFile: "./src/api/liberationApi.ts", outputFile: "./src/api/liberationApi.ts",

View File

@ -2,7 +2,7 @@ import axios from "axios";
const backendAddr = const backendAddr =
new URL(window.location.toString()).searchParams.get("server") ?? new URL(window.location.toString()).searchParams.get("server") ??
"[::1]:1688"; "[::1]:16880";
export const HTTP_URL = `http://${backendAddr}/`; export const HTTP_URL = `http://${backendAddr}/`;

View File

@ -20,7 +20,7 @@ class ServerSettings(BaseSettings):
server_bind_address: str = "::1" server_bind_address: str = "::1"
# This (and the address) will be passed the the front end as a query parameter. # This (and the address) will be passed the the front end as a query parameter.
server_port: int = 1688 server_port: int = 16880
# Enable to allow cross-origin requests from http://localhost:3000. # Enable to allow cross-origin requests from http://localhost:3000.
cors_allow_debug_server: bool = False cors_allow_debug_server: bool = False

View File

@ -1,7 +1,7 @@
const ENABLE_EXPENSIVE_DEBUG_TOOLS = false; const ENABLE_EXPENSIVE_DEBUG_TOOLS = false;
// Must be kept in sync with game.server.settings.ServerSettings. // Must be kept in sync with game.server.settings.ServerSettings.
const HTTP_BACKEND = "http://[::1]:1688"; const HTTP_BACKEND = "http://[::1]:16880";
const WS_BACKEND = "ws://[::1]:1688/eventstream"; const WS_BACKEND = "ws://[::1]:16880/eventstream";
METERS_TO_FEET = 3.28084; METERS_TO_FEET = 3.28084;