mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 12:17:45 +02:00
[Haik]: swapped prod to be a single endpoint instead of a range bc of google workspace shit
This commit is contained in:
@@ -66,9 +66,9 @@ These let users sign in with their Google account.
|
||||
5. **Name**: `OpenSwarm` (or anything you want).
|
||||
6. Under **Authorized redirect URIs**, click **+ Add URI** and add:
|
||||
```
|
||||
http://localhost:8324/api/auth/google/callback
|
||||
http://localhost:8325/api/tools/oauth/callback
|
||||
```
|
||||
(Replace `8324` with your `BACKEND_PORT` if you changed it.)
|
||||
(Replace `8325` with your `OPENSWARM_PORT` if you changed it.)
|
||||
7. Click **Create**.
|
||||
|
||||
### Step 6 — Copy the values
|
||||
|
||||
+1
-2
@@ -12,8 +12,7 @@ with open(_config_path) as _f:
|
||||
_cfg = json.load(_f)
|
||||
|
||||
BACKEND_DEV_PORT: int = _cfg["backend"]["dev"]
|
||||
BACKEND_PROD_PORT_START: int = _cfg["backend"]["prod"]["start"]
|
||||
BACKEND_PROD_PORT_END: int = _cfg["backend"]["prod"]["end"]
|
||||
BACKEND_PROD_PORT: int = _cfg["backend"]["prod"]
|
||||
FRONTEND_DEV_PORT: int = _cfg["frontend"]["dev"]
|
||||
NINE_ROUTER_DEV_PORT: int = _cfg["nineRouter"]["dev"]
|
||||
NINE_ROUTER_PROD_PORT: int = _cfg["nineRouter"]["prod"]
|
||||
|
||||
+1
-1
@@ -148,7 +148,7 @@ function waitForBackend(port, timeoutMs = 60000) {
|
||||
}
|
||||
|
||||
async function startBackend() {
|
||||
backendPort = await getPort({ port: getPort.makeRange(portsConfig.backend.prod.start, portsConfig.backend.prod.end) });
|
||||
backendPort = await getPort({ port: portsConfig.backend.prod });
|
||||
|
||||
const pythonPath = getPythonPath();
|
||||
const backendDir = getResourcePath('backend');
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"backend": {
|
||||
"dev": 8325,
|
||||
"prod": { "start": 8326, "end": 8424 }
|
||||
"dev": 8324,
|
||||
"prod": 8325
|
||||
},
|
||||
"frontend": {
|
||||
"dev": 3000
|
||||
|
||||
Reference in New Issue
Block a user