mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Move the server off the default uvicorn port.
This commit is contained in:
parent
d7e62d0b0b
commit
8c63274f57
@ -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]:5000/openapi.json",
|
schemaFile: "http://[::1]:1688/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",
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
export const HTTP_URL = "http://[::1]:5000/";
|
export const HTTP_URL = "http://[::1]:1688/";
|
||||||
|
|
||||||
export const backend = axios.create({
|
export const backend = axios.create({
|
||||||
baseURL: HTTP_URL,
|
baseURL: HTTP_URL,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const WEBSOCKET_URL = "ws://[::1]:5000/eventstream";
|
export const WEBSOCKET_URL = "ws://[::1]:1688/eventstream";
|
||||||
|
|
||||||
export default backend;
|
export default backend;
|
||||||
|
|||||||
@ -19,8 +19,9 @@ class ServerSettings(BaseSettings):
|
|||||||
# no client/server workflow yet, security has not been a focus.
|
# no client/server workflow yet, security has not been a focus.
|
||||||
server_bind_address: str = "::1"
|
server_bind_address: str = "::1"
|
||||||
|
|
||||||
# If you for some reason change the port, you'll need to also update map.js.
|
# If you for some reason change the port, you'll need to also update map.js and
|
||||||
server_port: int = 5000
|
# client/src/api/backend.ts.
|
||||||
|
server_port: int = 1688
|
||||||
|
|
||||||
# Disable to allow requests to be made to the backend without an API key.
|
# Disable to allow requests to be made to the backend without an API key.
|
||||||
require_api_key: bool = True
|
require_api_key: bool = True
|
||||||
|
|||||||
@ -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]:5000";
|
const HTTP_BACKEND = "http://[::1]:1688";
|
||||||
const WS_BACKEND = "ws://[::1]:5000/eventstream";
|
const WS_BACKEND = "ws://[::1]:1688/eventstream";
|
||||||
|
|
||||||
METERS_TO_FEET = 3.28084;
|
METERS_TO_FEET = 3.28084;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user