Make websocket transport secure by default

This commit is contained in:
Jage9
2026-02-28 03:52:05 -05:00
parent 46fd9fe46f
commit cf54132c25
6 changed files with 14 additions and 7 deletions

View File

@@ -4,7 +4,7 @@
```bash
cd /home/jjm/code/chgrid/server
.venv/bin/python main.py
.venv/bin/python main.py --allow-insecure-ws
```
## Start Client
@@ -19,6 +19,7 @@ Open: `http://localhost:5173`
Defaults:
- Server reads `config.toml` automatically when present.
- Server default bind/port is `127.0.0.1:8765`.
- Server defaults to TLS-required unless you set `network.allow_insecure_ws=true` or pass `--allow-insecure-ws` for local/dev.
- Client dev default is `localhost:5173`.
- Auth requires `CHGRID_AUTH_SECRET` in environment.
@@ -28,7 +29,7 @@ Server:
```bash
lsof -tiTCP:8765 -sTCP:LISTEN | xargs -r kill
cd /home/jjm/code/chgrid/server
nohup .venv/bin/python main.py > /tmp/chgrid-server.log 2>&1 &
nohup .venv/bin/python main.py --allow-insecure-ws > /tmp/chgrid-server.log 2>&1 &
```
Client: