Run the platform from source (local development)
Section titled “Run the platform from source (local development)”This page is for platform contributors, and for integrators who need a complete local sandbox rather than a hosted tenant. It collects the machine-level techniques for running OSOS from source on your own workstation: generating the per-developer configuration, giving the instance a real hostname, launching the whole backend fleet at once, recovering the first login, and diagnosing a bring-up that will not come up.
It is deliberately separate from the rest of this section, and self-contained. The other pages describe building on a running platform — through its API, events and functions; everything here describes standing the platform up on a laptop. The operator-level reference for the same Docker Compose setup — what runs where, seeds and migrations — is Running locally. A few steps still edit files you must not commit; those are marked local-dev only.
Generate the local configuration files Since 1.10
Section titled “Generate the local configuration files Since 1.10”Two files a workstation run needs are deliberately not in the repository, and a script
creates them for you. pnpm install runs it through postinstall (skipped when CI is
set), and you can re-run it at any time:
pnpm run setup:localIt never overwrites, so re-running it is safe and will not undo your edits. It creates:
| File it creates | Copied from | What it is for |
|---|---|---|
config/app-config.local.json | config/app-config.json | The endpoints the portal calls — your copy, free to edit |
services/data-service/.env.migration | services/data-service/.env.migration.example | The super-admin identity the migration seeds |
Why app-config.json is still tracked, and how to override it Since 1.10
Section titled “Why app-config.json is still tracked, and how to override it Since 1.10”The obvious move — untrack config/app-config.json and let every developer keep their own —
is wrong here, and the reason is worth knowing because the failure is silent. Compose
creates a directory at a missing bind-mount source. A clone that skipped the copy step
would get a directory where the portal expects its config file, and the portal would be
served a broken configuration with no error anywhere. Setting bind.create_host_path: false
does not prevent it.
So the tracked file stays, and the mount is indirected instead:
- ${OSOS_APP_CONFIG:-./config/app-config.json}:/app/app-config.jsonUnset — which is every existing setup, and all of CI — that resolves to exactly the path it
always used. To point the portal at your own endpoints, set the variable in backend/.env
and edit the local copy rather than the tracked one:
OSOS_APP_CONFIG=./config/app-config.local.jsonEverywhere below that tells you to set API_BASE_URL, AUTHORITY and friends, that is the
file to edit once this variable is set.
A 1.10 portal reads less of this file
Since 1.10. The current portal copiesapp-config.jsonthrough an allowlist and ignoresAPI_BASE_URL,SOCKET_BASE_URL,APP_URL,AUTHORITYandCLIENT_ID: it derives the API and socket bases from the page’s own origin and takes its OIDC settings from the host’stenant-config— see Portal sign-in comes from the host’s tenant-config. The settings below matter only for a pre-1.10 portal build.
Use a local domain instead of localhost or an IP
Section titled “Use a local domain instead of localhost or an IP”The single highest-value change you can make to a local environment is to stop browsing
localhost or a raw IP and give the instance a real hostname — osos.lan, say — with
its subdomains pointed at your machine. It removes every loopback workaround further down
this page, and it is the only way to exercise the parts of the platform that key off the
request host.
Why the hostname is load-bearing
Section titled “Why the hostname is load-bearing”OSOS is multi-tenant by hostname. On every request the gateway resolves the
Host header into a Space and a Domain, and rejects anything it cannot match. Space hosts
are derived from the Space’s domain record:
domain_identifier === 'root'→ the Space is served on the bare URL.- Any other identifier → the Space is served on
<domain_identifier>.<url>.
So a second Space with identifier hr on domain osos.lan is reachable only at
hr.osos.lan. With localhost you cannot meaningfully exercise that: the default
host alias rewrites the literal string localhost:4200 to the
gateway’s port, because the portal (:4200) and gateway (:8000) are split across two
ports locally — something no real deployment does. A real domain has no alias entry, so it
resolves to itself and the generic host-building path runs, exactly as it does in
production.
The payoff:
- Spaces and Domains become testable. Create a Space, give it an identifier, browse its
subdomain, and watch
space-resolveranddomain-resolverdo the real thing. - Per-host sign-in behavior becomes testable —
supportLocalSignIn, per-Domain branding, and identity-provider selection are all resolved from the host. - No loopback patching. The
127.0.0.1workarounds in the next section stop being necessary, because the browser, the portal, and the gateway all agree on one host. - The topology matches production: one hostname, path-routed to the portal, the gateway, and identity.
Point a wildcard domain at your machine
Section titled “Point a wildcard domain at your machine”Use a name in a reserved suffix — .lan, .internal, or .test — never a real TLD you do
not own, and never .local (mDNS). You need osos.lan and *.osos.lan resolving to
the workstation’s LAN address.
| Approach | Wildcards | Good for |
|---|---|---|
dnsmasq on the workstation or a home server | Yes — address=/osos.lan/192.168.1.50 covers the domain and every subdomain | The standard choice on Linux/macOS; also what most router firmware runs underneath |
| Pi-hole (or any LAN DNS appliance) | Yes — one wildcard record | A LAN-wide setup where phones and other machines must reach the instance too |
| Router DNS entry | Depends on firmware | Zero extra software when the router supports wildcard host overrides |
| Acrylic DNS Proxy (Windows) | Yes — 192.168.1.50 osos.lan *.osos.lan in AcrylicHosts.txt | A Windows workstation with no LAN DNS available |
hosts file | No | Only viable if you enumerate every Space subdomain by hand; fine for one or two Spaces, useless for testing Space creation |
The hosts-file limitation is the reason to prefer a real resolver: the whole point of the
exercise is that a newly created Space resolves without you touching anything.
Point the domain at the machine’s LAN IP, not 127.0.0.1, if you want to open the
instance from a phone or a second machine — which is also how you test the mobile app
against a local backend.
Put one front door in front of the portal and the gateway
Section titled “Put one front door in front of the portal and the gateway”A production instance serves everything from one host and path-routes behind it. Locally the portal and the gateway are separate published ports, so put a small reverse proxy on port 80 and mirror the production path map.
The production ingress routes, in order of specificity:
| Path | Backend |
|---|---|
/socket | public websocket service |
/api | API gateway |
/sh/ | shortener |
/identity, /users-assets, /.well-known, /jwks, /me, /session, /ext-auth, /token, /interaction, /auth | identity |
/auth-callback | portal |
/ | portal |
A Caddy container reproduces that locally. Add it to backend/docker-compose.override.yml
(the same local-only override file that carries the image remaps):
# backend/docker-compose.override.yml — local-dev onlyservices: front-door: image: caddy:2-alpine ports: - "80:80" volumes: - ./Caddyfile:/etc/caddy/Caddyfile:ro extra_hosts: - "host.docker.internal:host-gateway"# backend/Caddyfile — local-dev onlyhttp://osos.lan, http://*.osos.lan { handle /api/* { reverse_proxy osos-api-gateway:8000 } handle /socket/* { reverse_proxy host.docker.internal:3017 } handle /sh/* { reverse_proxy host.docker.internal:3010 } @identity path /identity/* /users-assets/* /.well-known/* /jwks /me /session /ext-auth/* /token/* /interaction/* /auth/* handle @identity { reverse_proxy host.docker.internal:3001 } handle { reverse_proxy osos-web:5000 }}The gateway and portal are addressed by their Compose service names because Caddy shares
their network; identity and the websocket service run natively on the host, so they are
reached through host.docker.internal. /auth-callback is not matched by the /auth/*
matcher and correctly falls through to the portal, matching the production ingress.
Configure the platform for the domain
Section titled “Configure the platform for the domain”Four places carry the host, and all four must agree.
- Portal runtime config — the file mounted into the portal container. Edit
backend/config/app-config.local.jsonand pointOSOS_APP_CONFIGat it (see above) rather than editing the trackedbackend/config/app-config.json:API_BASE_URL = http://osos.lan/apiSOCKET_BASE_URL = http://osos.lan/APP_URL = http://osos.lanAUTHORITY = http://osos.lan - Identity —
backend/services/users-service/config.env.AUTHORITY_URLis the OIDC issuer and must matchAUTHORITYabove exactly;RP_IDis the WebAuthn relying-party id and must be the registrable domain:AUTHORITY_URL="http://osos.lan"CLIENT_ORIGIN="http://osos.lan"RP_ID="osos.lan"BEHIND_PROXY=true - OIDC client — add the domain’s callbacks to the
localhost-angularclient inbackend/services/users-service/src/clients.json(and the built copy underdist/, or rebuild the service):http://osos.lan/auth-callbackandhttp://osos.lan/silent-renew.htmlinredirect_uris,http://osos.laninpost_logout_redirect_uris. - The seed — run the initial-setup migration with the domain, so the seeded Domain
record and Root Space are bound to it from the start:
Terminal window DEFAULT_DOMAIN="osos.lan" node ./dist/migrate
If the instance was already seeded against localhost:4200, either reset it and re-seed
with the new DEFAULT_DOMAIN, or edit the Domain record’s host and the Root Space’s
domain URL, then restart data-service so its boot observers rewrite the routing caches.
Testing Spaces and Domains on the domain
Section titled “Testing Spaces and Domains on the domain”With wildcard DNS in place, create a second Space with a domain_identifier (lowercase
letters, digits, and underscores only), and it becomes reachable at
<identifier>.osos.lan with no further DNS or proxy work. Confirm the host actually landed
in both routing caches before blaming the browser — a Space without a matching Domain
produces SPACE_ERROR or DOMAIN_ERROR even though the UI shows the Space as created.
The full model, both records’ fields, and the resolver behavior are described in
Spaces & Domains.
Loopback fallback: the 127.0.0.1 workarounds
Section titled “Loopback fallback: the 127.0.0.1 workarounds”If you are not going to set up DNS, the instance has to be reached over the loopback address, and on Windows that takes several coordinated settings. This is the fallback, not the recommendation — the domain setup above exists precisely to avoid it.
Why localhost fails on Windows
Section titled “Why localhost fails on Windows”Windows resolves localhost to the IPv6 loopback ::1 first, and Docker Desktop does not
forward the IPv6 loopback. Published container ports — the portal on :4200, the gateway
on :8000, the RabbitMQ UI on :15672 — are therefore dead on localhost and alive on
127.0.0.1. Services running natively (identity on :3001, data-service on :3000)
bind both, so they work either way, which is what makes the failure so confusing: half the
stack answers on localhost and half does not.
The browser makes it worse. Page navigation falls back from ::1 to IPv4, but fetch and
XHR do not — so the portal can load on localhost:4200 and every API call it makes still
fails. The portal must be pointed at 127.0.0.1 explicitly.
An alternative is to make Windows prefer IPv4 globally, from an elevated prompt:
netsh interface ipv6 set prefixpolicy ::ffff:0:0/96 60 4That keeps localhost usable everywhere, at the cost of a machine-wide network policy
change — and the space and domain host mappings still have to cover whichever host the
browser ends up sending.
The loopback OIDC callbacks are already registered Since 1.10
Section titled “The loopback OIDC callbacks are already registered Since 1.10”Nothing to do here any more. The development-only localhost-angular client in
backend/services/users-service/src/clients.json now carries both host spellings out of
the box:
redirect_uris: http://localhost:4200/auth-callback http://localhost:4200/silent-renew.html http://127.0.0.1:4200/auth-callback http://127.0.0.1:4200/silent-renew.htmlpost_logout_redirect_uris: http://localhost:4200 http://127.0.0.1:4200Previously only the localhost spellings were listed, so opening the portal on
http://127.0.0.1:4200 — the address Docker Desktop on Windows forces — ended sign-in in an
invalid-redirect error, and the file had to be hand-edited locally. It grants nothing the
localhost entries did not; it is the same client, reachable by both names.
Any other host still needs its own entries added by hand — that is the local-dev edit in step 3 of Configure the platform for the domain.
Keep the OIDC AUTHORITY on localhost:3001 — identity is a native service that binds
both stacks, and the issuer must keep matching what it announces.
Map the loopback host with DEV_HOST_ALIASES Since 1.10
Section titled “Map the loopback host with DEV_HOST_ALIASES Since 1.10”This used to be a source edit. It is configuration now — one environment variable, no patched file, nothing to keep out of a commit.
A Space and a Domain each record one host: the address a browser is expected to use.
Locally that is not the address the gateway answers on, so the routing caches built from
those records never match the Host the browser actually sends, and every API call returns
SPACE_ERROR and then DOMAIN_ERROR. Both caches are now built through one shared aliasing
layer, configured by DEV_HOST_ALIASES in backend/.env:
| Shape | A JSON object mapping a recorded host to one host, or to a list of hosts |
| Example | DEV_HOST_ALIASES={"localhost:4200":["localhost:8000","127.0.0.1:8000"]} |
| Default when unset | {"localhost:4200": ["localhost:8000"]} |
| A host with no entry | Resolves to itself |
| Malformed value | Logged, not thrown — it is read while refreshing the cache, so a typo must not take the refresh down. The default is used instead. |
| Production | Sets nothing, so nothing changes for a real deployment. |
One semantic matters when writing the value: the alias list replaces the recorded host,
it does not add to it. That mirrors the hardcoded rewrite it generalises, where
localhost:4200 was replaced by localhost:8000 rather than served alongside it. To keep
both localhost:8000 and 127.0.0.1:8000 usable, list both.
The Domain side is the part that changed most: it previously took its host verbatim, with no rewrite at all, so covering the Space alone was never enough. Both sides now run through the same function, which is why one setting fixes both.
After changing the value, restart data-service — the caches are rewritten by boot
observers, so a running service keeps serving the old host lists.
Add the loopback host to the Default Domain
Section titled “Add the loopback host to the Default Domain”DEV_HOST_ALIASES fixes what the gateway resolves. Identity has its own check: it shows the
username and password form only when a Domain lists the host the browser returns to. The
seed gives Default Domain one host, DEFAULT_DOMAIN (default localhost:4200), so on
127.0.0.1:4200 the sign-in page is blank. Seed with DEFAULT_DOMAIN="127.0.0.1:4200", or
on an instance already seeded add 127.0.0.1:4200 as another Host on Default Domain
(Administration › Applications › Data Entities › Domain, see
Spaces & Domains). To get a session for that, sign in
on localhost:4200 with the browser forced onto IPv4 — for example Chromium started with
--host-resolver-rules="MAP localhost 127.0.0.1". The saved change reaches identity and the
gateway’s domain cache through the update event, with no restart; a direct edit of the Mongo
domain collection skips that event and leaves identity’s copy stale.
Portal sign-in comes from the host’s tenant-config Since 1.10
Section titled “Portal sign-in comes from the host’s tenant-config Since 1.10”The portal no longer reads its OIDC settings from app-config.json. Before Angular starts it requests GET /api/identity/v1/tenant-config on the host it was opened on and takes authority, clientId and scope from the response (the contract is in Authentication & OAuth). Consequences for a workstation run:
-
OIDC_WEB_CLIENT_IDmust be set on the identity service.users-service/config.envshipsOIDC_WEB_CLIENT_ID="localhost-angular"; without ittenant-configanswers503and the portal shows its “sign-in service not available / still being set up” page instead of starting. -
nx serveproxies/apiand/socket.ioto the gateway named byOSOS_API_TARGET(defaulthttp://localhost:8000, or a remote environment) withchangeOrigin, so the gateway resolves the tenant from the target’s host. The development build signs in through thelocalhost-angularclient, because a real environment’s web client does not listhttp://localhost:4200. The production bundle has no such override, and CI fails a production build that contains it. -
The
osos-webimage has no such proxy: its nginx serves the portal only, so on the split-port stack (portal:4200, gateway:8000)/api/identity/v1/tenant-configfalls through to the portal’s page and the portal stops onBAD_CONFIG. The image (Since 1.10) reads any*.confmounted into/etc/nginx/conf.d/extra/inside its server block, so mount a local-dev only include that does whatnx servedoes. Behind a front door you do not need it: the front door already routes/apiand/socket.# same-origin-api.conf — local-dev only. Mounted into osos-web at /etc/nginx/conf.d/extra/location ^~ /api/ {proxy_pass http://osos-api-gateway:8000;proxy_http_version 1.1;proxy_set_header Host 127.0.0.1:8000; # a host the gateway already resolvesproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto $scheme;client_max_body_size 512m;proxy_read_timeout 300s;}location ^~ /socket.io/ {proxy_pass http://host.docker.internal:3017; # the public websocket serviceproxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";proxy_set_header Host $host;proxy_read_timeout 3600s;}Mount it from
backend/docker-compose.override.yml(keep the file outside the repository), thendocker compose up -d osos-web:# backend/docker-compose.override.yml — local-dev onlyservices:osos-web:volumes:# keep the file outside the repository- /path/to/osos-local/portal-nginx/same-origin-api.conf:/etc/nginx/conf.d/extra/same-origin-api.conf:roThe include sends
Host: 127.0.0.1:8000, so keep that host inDEV_HOST_ALIASES. -
A broken bootstrap renders a static bilingual error page with a
data-reasoncode and the gateway correlation id.BOOTSTRAP_ENDPOINT_MISSINGusually means the backend image or the/api/identitygateway route is older than the frontend.
Other local-run defaults that changed Since 1.10
Section titled “Other local-run defaults that changed Since 1.10”space-resolveranswers404 SPACE_ERRORfor a host that matches no Space (it was400);domain-resolverstill answers400 DOMAIN_ERROR. The portal classifies either as an unresolved host.APPLY_RATE_LIMITER— the/identityrate limiter (10 non-GETrequests per 15 minutes per client address) is on unless the value isfalse(Since 1.4: the flag used to be inverted). The localusers-service/config.envsets"false"so repeated sign-in tests are not throttled; leave it unset for a production-like run.OIDC_COOKIE_KEYSis required unlessNODE_ENVisdevelopmentortest(the localconfig.envsetsNODE_ENV=development, so a key is generated with a warning). Signing keys are no longer read from a committedjwks.json; they are generated into the tenant’s key store on first boot, or read from PEM files inOIDC_SIGNING_KEYS_DIR.SPACE_SCOPE_ENFORCEMENTdefaults toenforcein code when unset — the usual case on a workstation — so a script that calls a service directly without anx-space-idheader gets400 SPACE_CONTEXT_MISSINGinstead of silently using the Root Space. (A chart-deployed environment rendersspaceScope.enforcement, whose default isobserve.) Through the gateway the header is always supplied from the host.ENABLE_SPEC=falsenow really stops/api/openapi.jsonand/api/explorer(Since 1.2, an update on every line); it used to leave the JSON document served.SIGNIN_AUTO_REDIRECT_SINGLE_PROVIDERis a commented-out example inconfig.env; unset means on, so the login page is skipped when one external provider is the only way in.
Launch the whole backend fleet
Section titled “Launch the whole backend fleet”The backend services are not in Compose; they run natively. Two root scripts start them, and they are not interchangeable:
| Script | What it starts |
|---|---|
pnpm run start:core | The merged core process, plus only the services core does not host (oidc, storage, indexing, scheduler, notification, web-socket, rtc). This is the one to run day to day. |
pnpm start | Every workspace service as its own process — except the merged core bootstrap. |
cd backendpnpm run start:coreBoth scripts build first (Turbo’s start task depends on build), and both default
TENANCY_MODE=single, APP_ID=local and ALLOW_INSECURE_FIELD_ENCRYPTION_KEY=true for every
service they launch; a value already set in your shell wins. A third script,
pnpm run start:main, used to start a hand-picked minimal subset; it was removed in 1.10
Removed 1.10 because start:core already brings up everything a local run needs.
core is a bootstrap that boots several service applications (audit, notification-api,
reaction, dependency-service, data-service, comments, timeline, workflow-service,
logging-service, integrations, packaging-service, functions) inside one process, so
starting it alongside the same services individually would run each of them twice. pnpm start
therefore leaves it out, and start:core is the script that runs it — leaving out, in turn,
every application core already hosts.
Two constraints then shape a hand-rolled launcher: every service defaults its Prometheus
metrics server to the same port, so each needs a distinct METRICS_PORT — non-fatal for HTTP
services, fatal for the port-less bus workers — and a service started on its own does not get
the defaults the root scripts supply, so it refuses to boot without APP_ID (single-tenant
mode), and the services that encrypt fields also need a master key or, locally,
ALLOW_INSECURE_FIELD_ENCRYPTION_KEY=true.
The altcha and shortener services are not in this list: they are not workspace packages.
They live in their own repositories and run locally as Compose images, published on the ports
the other services expect (altcha on 3023, the shortener on 3010):
cd backenddocker compose up -d altcha-service shortener-serviceA launcher that assigns ports, sets those defaults, and keeps one log per service:
#!/usr/bin/env bash# ~/osos-start-all.sh — local-dev onlycd "<path-to>/backend"export BASH_ENV="$HOME/.pnpm-bashenv" # Windows-only; see the note belowmkdir -p "$HOME/osos-logs"mp=9101# the defaults the root start scripts would have suppliedexport TENANCY_MODE="${TENANCY_MODE:-single}" APP_ID="${APP_ID:-local}" \ ALLOW_INSECURE_FIELD_ENCRYPTION_KEY="${ALLOW_INSECURE_FIELD_ENCRYPTION_KEY:-true}"for s in oidc data-service logging-service workflow-service reaction storage \ notification-api indexing audit comments timeline scheduler packaging-service \ dependency-service web-socket notification; do env METRICS_PORT=$mp pnpm --filter "$s" run start > "$HOME/osos-logs/$s.log" 2>&1 & echo "launched $s (METRICS_PORT=$mp)" mp=$((mp+1))doneecho ALL_LAUNCHEDwaitRun it in the background and leave it running — it owns the service processes:
bash ~/osos-start-all.sh &The list is the workspace name, which often differs from the directory name (identity’s
package is oidc, web-socket-service is web-socket). BASH_ENV is only needed on native
Windows, where it supplies the nullglob setting the package scripts assume.
Services must be listening and their bus queues bound before the initial-setup migration runs, because provisioning is published over the bus and a topic exchange drops messages nobody is consuming. Confirm the two that matter have a consumer:
docker exec backend-rabbitmq-1 rabbitmqctl list_queues name consumers \ | grep -E "data-service-queue|users-service-queue" # both should show 1Recover the first login
Section titled “Recover the first login”Who the super-admin is comes from services/data-service/.env.migration — the file
pnpm run setup:local creates — through SUPER_ADMIN_EMAIL and
SUPER_ADMIN_USERNAME. Set both before you migrate, and use an inbox you can read for
SUPER_ADMIN_EMAIL: the defaults in the code and in the example files are not addresses you
will receive mail at. With a mail catcher (below) any address works: every message lands in the
same inbox.
The super-admin gets no password. When the identity service creates the account it gives it
an unusable random password, issues a password-reset token, and emails the set-password link
to SUPER_ADMIN_EMAIL. Since 1.10 only a SHA-256 hash of the token is stored
(resettokens.tokenHash), so the link cannot be rebuilt from the database — reading the
collection gives you nothing you can open. Catch the email instead.
Run a local mail catcher and point the email sender at it. Mailpit
takes SMTP on 1025 and shows every message in a web inbox on 8025. Add it to
backend/docker-compose.override.yml, and give the email-service container its SMTP
settings (the same SMTP_* variables a cluster deployment sets):
# backend/docker-compose.override.yml — local-dev onlyservices: mailpit: image: axllent/mailpit ports: - "8025:8025" environment: MP_SMTP_AUTH_ACCEPT_ANY: "1" MP_SMTP_AUTH_ALLOW_INSECURE: "1" email-service: environment: SMTP_HOST: mailpit SMTP_PORT: "1025" SMTP_SECURE: "false" SMTP_USERNAME: local SMTP_PASSWORD: localRecreate the two containers (docker compose up -d mailpit email-service), then run the
migration. Open http://localhost:8025, find the set-password email, and follow its link. The
reset router is mounted under /identity, so the link reads /identity/reset-password/<token>
on the host you configured — http://osos.lan/identity/reset-password/<token> on a domain
setup. Set a password, then sign in at the portal.
If the link has expired (24 hours by default) or the email never arrived, open
/identity/reset-password on the same host and request a new link for the super-admin email you seeded.
Each request replaces the previous link, so only the newest one works.
Diagnose a bring-up that will not come up
Section titled “Diagnose a bring-up that will not come up”The failure modes move as you fix each layer — connection refused, then SPACE_ERROR, then
DOMAIN_ERROR, then a real response. That progression means you are making progress; each
one is a different layer answering.
# What is actually listening? Authoritative on Windows, where curl is easy to misread.powershell -c "Get-NetTCPConnection -State Listen | ? {$_.LocalPort -ge 3000 -and $_.LocalPort -le 3025} | select LocalPort"
# Curl a published port without the proxy/loopback quirks getting in the way:curl -s --noproxy '*' -o /dev/null -w "%{http_code}\n" http://127.0.0.1:8000/api
# Can the gateway container reach the native services on the host?docker exec backend-osos-api-gateway-1 sh -c \ 'curl -s -o /dev/null -w "%{http_code}\n" http://host.docker.internal:3000/'
# Which plugin is rejecting the request? Replay the preflight and read the body:curl -s -i --noproxy '*' -X OPTIONS http://127.0.0.1:8000/api/language \ -H "Origin: http://127.0.0.1:4200" \ -H "Access-Control-Request-Method: GET" \ -H "Access-Control-Request-Headers: authorization"
# A service's boot log, if you used the launcher above:tail -n 40 ~/osos-logs/data-service.logThe preflight replay is the fastest way to separate a genuine CORS problem from a tenancy one. The gateway allows all origins, so a rejected preflight is almost always the space or domain resolver refusing the host — the error body names which.
Notes on versioning
Section titled “Notes on versioning”Most of this page is Long-standing — the split-port local topology, the host-derived tenancy, and the seed behavior all predate the 1.2 milestone.
The mechanics that changed recently are developer-environment facts rather than product
capabilities — they change nothing a tenant, an administrator or an app builder can see, and
they are not part of any release the product announces. They do, however, live in the backend
repository itself, so they ship with the code: Since 1.10 and later, a checkout of develop
or the 1.10 release branch has them; a checkout of 1.8 or an earlier release branch will not.
That is exactly what the version filter is for: they carry `Since 1.10` so filtering this
page to an earlier milestone hides the steps that would not work there.
DEV_HOST_ALIASESand the shared aliasing layer behind it, on both the Space and the Domain side. Before it, the loopback host mapping was the hand-applied source patch this page used to document.- The
127.0.0.1callbacks on thelocalhost-angularOIDC client. scripts/setup-local-config.js(postinstall/pnpm run setup:local) and theOSOS_APP_CONFIGmount indirection.- The AD and Entra ID directory importers leaving this repository for their own, which also
retired the
azure-ad-importerexclusionpnpm startandpnpm run start:corebriefly carried. - The portal bootstrap from
tenant-configand the other local-run defaults listed under Other local-run defaults that changed — these are product changes, shipped on the 1.10 line.
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27