|
156 | 156 | `null` while Standby is off. `POST` and `PUT /v2/actors` accept `actorStandby`; a partial object is merged |
157 | 157 | over the stored settings, over the defaults. An invalid one is `400` `invalid-request`, changing nothing; |
158 | 158 | a `tenancy` other than `SINGLE_TENANT` is invalid. |
159 | | -- The standby URL is `http://localhost:3333/actor-runtime/standby/<username>--<actor-name>`; the Actor id |
160 | | - also works in place of `<username>--<actor-name>`. Everything after it - path, query, method, headers, |
161 | | - body, websocket upgrades - reaches the Actor's server unchanged, the token included. |
162 | | -- The platform's host-based shape, `http://<username>--<actor-name>.localhost:3333/<path>`, is served too, |
163 | | - for clients that resolve `*.localhost`; its whole path reaches the Actor. |
| 159 | +- The standby URL has the platform's host-based shape, `http://<username>--<actor-name>.localhost:3333`: |
| 160 | + the Actor owns `/` of its own origin, as on `*.apify.actor`, so a web UI it serves can use root-relative |
| 161 | + links. Several standby Actors are served side by side, one hostname each. |
| 162 | +- The same Actor is also served at `http://localhost:3333/actor-runtime/standby/<username>--<actor-name>`, |
| 163 | + for clients that do not resolve `*.localhost`, and at |
| 164 | + `http://apify-api:3333/actor-runtime/standby/<username>--<actor-name>` from Actor containers. The Actor |
| 165 | + object read from an Actor container carries this container form as its `standbyUrl`. |
| 166 | +- The Actor id also works in place of `<username>--<actor-name>` in every form. Everything after the |
| 167 | + standby URL - path, query, method, headers, body, websocket upgrades - reaches the Actor's server |
| 168 | + unchanged, the token included. |
164 | 169 | - Authenticated like the API (`Authorization: Bearer`, `?token=`), plus the platform's |
165 | 170 | `x-apify-authorization` header; only the Actor's owner is served. |
166 | 171 | - Errors, as `{ "error": { "type", "message" } }`: no token `401` `user-not-authenticated`; no such Actor of |
|
0 commit comments