chore: change default ports to non-standard ones (9472, 9470, 9471)

This commit is contained in:
2026-05-06 23:23:29 +03:00
parent be370fb76b
commit 9b7ed1fca8
29 changed files with 166 additions and 166 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ type
proc defaultClientConfig*(): ClientConfig =
ClientConfig(
host: "127.0.0.1",
port: 5432,
port: 9472,
database: "default",
username: "admin",
password: "",
+1 -1
View File
@@ -21,7 +21,7 @@ type
proc defaultConfig*(): BaraConfig =
BaraConfig(
address: "127.0.0.1",
port: 5432,
port: 9472,
dataDir: "./data",
maxConnections: 1000,
walEnabled: true,
+1 -1
View File
@@ -441,7 +441,7 @@ setInterval(() => { if(document.querySelectorAll('.panel')[4].classList.contains
</body></html>"""
request.respond(200, @[("Content-Type", "text/html; charset=utf-8")], html)
proc run*(server: HttpServer, port: int = 8080) =
proc run*(server: HttpServer, port: int = 9470) =
var router = newRouter()
router.get("/admin", server.adminHandler())
router.get("/", server.adminHandler())
+1 -1
View File
@@ -283,7 +283,7 @@ proc handleConnection(server: WsServer, client: AsyncSocket) {.async.} =
inc server.nextId
asyncCheck server.handleWsClient(client, server.nextId)
proc run*(server: WsServer, port: int = 8081) {.async.} =
proc run*(server: WsServer, port: int = 9471) {.async.} =
server.running = true
let sock = newAsyncSocket()
sock.setSockOpt(OptReuseAddr, true)