mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-14 16:35:01 -05:00
feat(internal): added internal api base url for internal calls (#3212)
* feat(internal): added internal api base url for internal calls * make validation on http more lax
This commit is contained in:
@@ -120,6 +120,18 @@
|
||||
"format": "uri",
|
||||
"description": "Public application URL"
|
||||
},
|
||||
"INTERNAL_API_BASE_URL": {
|
||||
"type": "string",
|
||||
"anyOf": [
|
||||
{
|
||||
"format": "uri"
|
||||
},
|
||||
{
|
||||
"const": ""
|
||||
}
|
||||
],
|
||||
"description": "Optional server-side internal base URL for internal /api self-calls (must include http:// or https://); defaults to NEXT_PUBLIC_APP_URL when unset"
|
||||
},
|
||||
"BETTER_AUTH_URL": {
|
||||
"type": "string",
|
||||
"format": "uri",
|
||||
|
||||
@@ -70,6 +70,7 @@ app:
|
||||
# Application URLs
|
||||
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
|
||||
BETTER_AUTH_URL: "http://localhost:3000"
|
||||
INTERNAL_API_BASE_URL: "" # Optional server-side internal base URL for /api self-calls (include http:// or https://); falls back to NEXT_PUBLIC_APP_URL when empty
|
||||
# SOCKET_SERVER_URL: Auto-detected when realtime.enabled=true (uses internal service)
|
||||
# Only set this if using an external WebSocket service with realtime.enabled=false
|
||||
NEXT_PUBLIC_SOCKET_URL: "http://localhost:3002" # Public WebSocket URL for browsers
|
||||
|
||||
Reference in New Issue
Block a user