# Runway — Administration Manual > **Audience:** **application administrators** — the operators who install and run the Runway > platform itself (not the people who manage an individual site). > **What this is:** everything needed to install, configure, run, and maintain a Runway server, > including managing plugins, sites, and application users. > **Doc status.** Every section covering a built feature is written, including **§14 Monitoring & metrics**. > Each change ships with its documentation. This document is self-contained. --- ## 1. Overview & audience Runway is a **multi-site web platform**: one running server hosts many independent **sites** (tenancies), each with its own content, presentation, users, and configuration, resolved by the request's `Host` header. This manual is for the **application administrator** — the operator who installs, configures, runs, and maintains that server. **What you control.** As an application administrator you run the *platform*: its configuration, the **plugins** it loads, the **sites** it hosts (create, suspend, resume, delete), the **application-level user accounts** (fellow operators), and the platform-wide settings. You do all of this from the **operator console** at `/__app`, after signing in at `/app/login`. The console answers on the default site's host names and on host names that serve no site (the server's IP address, `localhost`), but not on a host name that serves another site, or only on the names you list in `runway.console.hosts` (**§8.6**). The console's top bar is organized into **dropdown groups**: **Dashboard** (top-level), **Sites** (Manage sites, Backups, Templates, Site master users), **Access** (App users, Permissions), **Activity** (Bandwidth, Logs), the top-level **Plugins**, and **Settings** (Platform settings, About Runway). Items you cannot open are hidden — each entry is shown exactly when its screen would let you in (the same check the screen makes: a grantable permission such as **Logs** → `VIEW_AUDIT`, **Bandwidth** → `VIEW_BANDWIDTH`, **Templates** → `MANAGE_STYLES`, **Manage sites** → `VIEW_TENANCIES` or `MANAGE_SITE_HOSTS`, or the superadmin/wildcard-admin gate of **Backups**, **Permissions** and **Platform settings**) — and a group left with nothing in it is hidden too, so the menu never offers a link that answers "forbidden". Hiding is only presentation: every screen still checks on its own. Section references below name the destination screen; the parenthetical path is the direct URL. A **language switcher** (the globe/language icon next to your username) sets the console's display language — English or Spanish by default (see `runway.operator.ui-languages` in **§8**); the choice is remembered per operator and does not affect any site's own language. **What you do NOT do.** You never operate *inside* a site as if you were a site user — you cannot edit a site's pages, its content, or its per-site data. That is the site manager's job, done in a separate realm and a separate console. This is a deliberate, foundational boundary: - **Two user realms that never cross.** The **application realm** (operators; login `/app/login`, console `/__app`) and the **tenant realm** (site users; login `/login`, console `/__admin`) have separate login URLs and separate user stores. Authenticating in one never grants the other — even in the same browser, an application session and a site session coexist without crossing. A compromised or buggy action in one site is contained to that one site; the operator and the other sites are never exposed. - **The application superadmin runs the platform but cannot enter a site;** every **site superadmin** fully manages its site but can never reach the application realm. You provision a site's first superadmin when you create the site, and you can reset its password from the console, but you cannot use it to act inside the site. The companion document for operating an individual site is the *Site Manager & Designer Guide* ([SITE-MANAGER-GUIDE.md](SITE-MANAGER-GUIDE.md)); its §2 also describes keyboard and screen-reader use, which is the same in the platform console (skip link, Esc then Tab out of a code editor, Down arrow or Shift+F10 for a listing table's column menu). Day-to-day operational troubleshooting lives in [OPERATIONS.md](OPERATIONS.md). ## 2. System requirements | Requirement | Detail | |---|---| | **OS** | Linux with **systemd** (the installer and unit target it; tested on RHEL-family — Rocky/Fedora/Alma — and Debian-family). macOS/Windows are not covered by the installer. | | **Java** | A **JDK or JRE 25+** on the host. A JRE is sufficient — Runway does **not** compile at runtime. The installer auto-detects a 25+ runtime (Zulu, Temurin, generic OpenJDK) or you point it with `--java-home`. | | **Database** | **None.** The kernel is filesystem/YAML-backed on purpose; there is no SQL server to install or configure, and the first-run wizard never asks for one. Plugins that need one use PostgreSQL or MariaDB through the **database plugins** (§11.1). | | **CPU / RAM** | Modest. The service runs in one JVM; the shipped heap is `-Xms256m -Xmx1g` (`JAVA_OPTS` in the unit), which suits a small VM. Note the sizing interlock: each Argon2id password verification costs 19–32 MiB, and the hash pool is bounded (`runway.security.max-concurrent-hashes`, default 8) precisely so a login flood cannot exhaust heap — keep `-Xmx` comfortably above `max-concurrent-hashes × memory-cost`. | | **Disk** | The code footprint is small (a single fat jar). Plan capacity for **editable state**: `external/` (config + all site folders), `logs/`, and `backups/` (site backup archives can be large — see **§13**). | | **Network / ports** | One HTTP listener. By default Runway serves **plain HTTP on port 8080** and expects a reverse proxy (HAProxy/nginx/Caddy) in front to terminate TLS (**§7**). Change the port with `--server.port=` (`RUNWAY_OPTS`). Binding a privileged port (80/443) directly needs `CAP_NET_BIND_SERVICE` — see the unit (**§6**). | Clustering is **opt-in and off by default** (`runway.cluster.enabled`, set in the external `application.yml`). Left off — the default, and what the sizing figures below assume — no Hazelcast member starts, no session repository is wired, and the container's own `HttpSession` is used: one instance, scaled vertically on a bigger host. Turned on, several instances run behind a load balancer — HTTP sessions live in a Hazelcast `IMap` shared by every node (so a session survives losing the node that created it, with no sticky-session requirement), and a Hazelcast topic relays cache-invalidation events (site, page, content and per-site plugin-config changes) so every node evicts in step. Each node is a Hazelcast member itself by default (`runway.cluster.topology: EMBEDDED`, `tcp-ip` discovery with an explicit member list), or a client of a separately-run grid (`CLIENT_SERVER`). **The clustering keys.** All of them live in the external `application.yml` (or the environment) of **every** node, with the same values on each, and are read once at startup: a change needs a restart of every node. None is on a console screen, because one node's console cannot change the others. While `enabled` is `false` none of the other keys is read, so a mistake in them shows only when you switch clustering on. Nor are they read in WIZARD mode: clustering starts only once first-run setup is done. | Key | Default | What it does | |---|---|---| | `runway.cluster.enabled` | `false` | The master switch. Off, the node runs alone with the servlet container's own sessions. | | `runway.cluster.cluster-name` | `runway` | The Hazelcast cluster name. Members and clients join only peers with the same name, so two estates on one network stay apart. With `CLIENT_SERVER` it must equal the name of the grid you connect to. | | `runway.cluster.topology` | `embedded` | `embedded`: every node is a Hazelcast member and reads only the `embedded.*` keys. `client-server` (or `CLIENT_SERVER`): every node is a client of a grid you run separately and reads only the `client.*` keys. Any other value stops startup. | | `runway.cluster.session-ttl` | `30m` | How long an idle signed-in session lives while clustering is on. **Keep it equal to `server.servlet.session.timeout`** (§8): with clustering on, this value decides the timeout, and with it off that one does, so equal values mean switching clustering never changes when people are signed out. Write the unit (`30m`, `2h`): a bare number is read as **milliseconds** here, unlike `server.servlet.session.timeout`, where it means seconds. On an embedded member the grid also drops idle session entries itself after this time, but never sooner than 60 seconds. | | `runway.cluster.sessions-map-name` | `runway.sessions` | The name of the distributed map that holds the sessions. Change it only when two separate Runway estates share one external grid (`CLIENT_SERVER`): with the same name they would share sessions. | | `runway.cluster.events-topic-name` | `runway.events` | The name of the distributed topic that carries "this changed, drop your cached copy" messages between nodes (site, page, content and per-site plugin-setting changes). Same rule as the map name: different estates on one grid need different names. | | `runway.cluster.embedded.discovery` | `tcp-ip` | How embedded members find each other: `tcp-ip` (the `members` list below; use it in production) or `multicast` (members find each other on the local network; convenient for a test cluster, and `members` is then ignored). Written exactly so, in lower case; any other value stops startup with a message naming it. | | `runway.cluster.embedded.members` | empty | With `tcp-ip`: the members' addresses as `host:port`, for example `["10.0.0.1:5701", "10.0.0.2:5701"]`. | | `runway.cluster.embedded.port` | `5701` | The port this node's member listens on for the other members. Open it between the nodes in the host firewall, and nowhere else: it is the cluster's internal traffic, sessions included. | | `runway.cluster.embedded.port-auto-increment` | `true` | When the port is taken, try the next ones, so several members can run on one host. Turn it off to make a taken port fail instead of moving to a port your firewall does not open. | | `runway.cluster.client.addresses` | empty | With `client-server`: the grid members to connect to, e.g. `["hz1.internal:5701"]`. **Required**: an empty list stops startup with *"runway.cluster.topology=CLIENT_SERVER requires runway.cluster.client.addresses to be non-empty"*. | | `runway.cluster.client.smart-routing` | `true` | The client talks to every grid member and sends each operation to the member that owns the data (the fastest). Turn it off only when a firewall lets the client reach just one member: everything then goes through that one. | With `client-server`, Runway does not configure the grid's session map for you: declare the map named in `sessions-map-name` on the grid with `max-idle-seconds` equal to the session TTL. Without it an idle session is removed only when someone presents its id again, so abandoned sessions stay in the grid's memory. Two limits remain, and they shape the topology you can actually run: there is **no read-only edge/replica mode** yet (every node is a full read-write instance), and the filesystem stores serialize writes **per site within one JVM only** — two nodes writing the same site's files are last-writer-wins at file granularity (a distributed lock is the follow-up). Keep authoring traffic on one node until that lands. ### Capacity, sizing & resilience Runway is **CPU-bound**, not memory-bound, for dynamic traffic — so **size the CPU for your peak request rate and let memory follow the §15 rule.** Reference numbers from a load test on a **2 vCPU** box (Jetty/JDK 25, behind HAProxy; SSR-heavy mix including a full-JSON-LD page): - **~750 req/s sustained** for server-rendered pages, at **~99 % CPU** — the **SSR render is the cost**; the box saturated CPU well before anything else. **Median latency ~27 ms** when not overloaded. - **Static / cached content goes far higher** (a CSS/JS asset is cheap) — the dynamic render is what consumes a core, so read the 750 figure as a *dynamic-page* ceiling, not a total. - **Memory was comfortable throughout: zero full GCs**, heap peaked ~0.7 GB of a 2 GB `-Xmx`, and the `MemoryMax` cgroup cap was never approached. Add cores for throughput; give memory the §15 headroom and it is not the limit. - **Rule of thumb:** throughput scales with cores for SSR traffic — roughly **~350–400 dynamic req/s per core** on this class of hardware. Extrapolate cautiously (these are 2-core measurements; real pages and CPU differ). **Concurrency ceiling — the Jetty thread pool.** In-flight request concurrency is bounded by the embedded Jetty thread pool (**default max 200**, min 8). On ≤ 2 cores CPU saturates long before 200 threads matter, so the default is fine; on a **larger multi-core host** the pool becomes the binding ceiling. Raise it on **Settings → Server settings → Capacity** ("Most request threads", "Fewest request threads"), or with the standard Spring Boot property in the external `application.yml` (or as a `RUNWAY_OPTS`/JVM arg). Either way it applies after a restart. The minimum may not be above the maximum (the console refuses it, because the server would not start). The same threads serve the public sites **and** the consoles, so a maximum set too low leaves the console waiting behind public traffic under load: ```yaml server: jetty: threads: max: 400 # default 200 — raise on a box with many cores serving high SSR concurrency min: 8 ``` **Resilience past capacity.** Beyond its capacity Runway **degrades gracefully — it sheds excess with `503`s, never crashes, and recovers instantly** when load drops (in the test, CPU fell 99 %→8 % and busy threads 200→3 the moment the spike ended). Combined with the DoS floor (**§12**), an overload or a flood is shed, not fatal. ## 3. Installation Runway ships as a **single-file, self-extracting installer** — `runway-.bin` — a plain shell script with a compressed bundle appended after a marker. It needs only stock tools (`bash`, `tar`, `gzip`, `awk`, `tail`); there is no `makeself` or other dependency. The **same file installs and upgrades** — re-run it to upgrade in place (**§15**). **Download & verify.** Get the installer (and the plain `runway--dist.zip` bundle) from the releases page, . Every release also ships **stable-named aliases** and an auto-computed **`SHA256SUMS`** manifest, so these links always fetch the newest build without looking up a version number: ``` https://g.quest.mx/quest/runway/releases/download/latest/runway-latest.bin https://g.quest.mx/quest/runway/releases/download/latest/runway-latest-dist.zip https://g.quest.mx/quest/runway/releases/download/latest/SHA256SUMS ``` The browser page `…/releases/latest` always opens the newest release. > **`latest` serves the newest release.** `…/releases/latest` and every `…/download/latest/…` link serve the > newest release from the moment it is cut. The release title and its versioned file (`runway-.bin`, beside the > alias) say which version you got; the CHANGELOG says what each one is. **For production, download an explicit version** from the > releases page rather than the `latest` link, so a re-run of your install script cannot pick up a newer build > you have not read the upgrade notes for (§15). Verify before running — `SHA256SUMS` lists both the versioned and the alias names (the aliases are byte-identical copies of that release's artifacts), and the plugin author's `runway-spi*` files, which an operator does not download (`--ignore-missing` skips them): ```bash curl -fL -O \ https://g.quest.mx/quest/runway/releases/download/latest/runway-latest.bin curl -fL -O \ https://g.quest.mx/quest/runway/releases/download/latest/SHA256SUMS sha256sum -c SHA256SUMS --ignore-missing # must print: runway-latest.bin: OK chmod +x runway-latest.bin # a download has no execute bit sudo ./runway-latest.bin ``` > **The `sha256sum -c` step is not optional, and it is the only thing standing between you and a silent > failure.** Where the releases page requires signing in, a Gitea server given no valid token does not return an > error — it returns **HTTP 200 with > `Content-Type: text/html`**, the sign-in page, under the asset's own URL. `curl -f` does **not** catch that > (`-f` only fails on status ≥ 400), so you end up with a ~12 KB HTML file named `runway-latest.bin`, and any > check that looks at the exit code or the status code reports success. > > The checksum comparison is what fails loudly there, so never skip it — and if you script the download, assert > **`Content-Type` and size**, not the status code. The same reasoning applies to any automated freshness or > availability probe against these URLs. Before you point an audit, prober or load test at the new install, exempt its address — §12.4, *Exempting your own high-volume clients*. **Install (interactive).** Copy the `.bin` to the target host and run it as root: ```bash chmod +x runway-.bin # a download has no execute bit sudo ./runway-.bin ``` On a terminal it walks you through the deployment choices it can't infer — **install location**, **service user**, the **listen port**, whether to **terminate TLS in Runway itself** (and if so the PKCS12 keystore + password, and an optional HTTP→HTTPS redirect), and whether to **open the host firewall** — with any flags you passed pre-filled as the defaults. Anything you supply as a flag is not re-asked. Watch for the closing lines — it prints the install path, the `systemctl status` / `journalctl` commands, and the reminder to finish setup in the browser. TLS choices are written to the external `application.yml` and the first-run web wizard **preserves** them (it merges only its superadmin pin — see §4). **Install (unattended).** Accept all defaults with `-y`, or drive every choice by flag: ```bash sudo ./runway-.bin -y # plain HTTP behind a reverse proxy (the default) sudo ./runway-.bin --port 8080 --open-firewall # set + open the listen port # terminate TLS locally with an existing PKCS12 keystore (see §7.1 to make one from PEM): sudo ./runway-.bin -y --tls-keystore /opt/runway-data/external/tls/runway.p12 \ --tls-password 's3cr3t' --tls-redirect --open-firewall ``` **Installer options** (pass any straight through the `.bin`): | Flag | Effect | |---|---| | `--prefix DIR` | Install root (default `/opt`). | | `--user NAME` | Service user to create/use (default `runway`). | | `--port N` | The app's listen port. Written to `application.yml` when non-default (443 with local TLS, else 8080), and opened in the firewall if requested. A port below 1024 also switches on `CAP_NET_BIND_SERVICE` in the unit; later upgrades keep it (§6). **First install only** (see below). | | `--tls-keystore PATH` | Terminate TLS in Runway itself with this **PKCS12** (`.p12`) keystore — implies local TLS; the file is copied to `external/tls/` and `runway.tls.*` is written (§7.1). **First install only** (see below). | | `--tls-password PASS` | Keystore password (else prompted; unattended installs must pass it). It is written **in plain text** as `runway.tls.keystore-password` in `external/application.yml`, which is why that file is mode `600` and owned by the service user. Typed on the command line it also lands in your shell history; leave it off on a terminal and answer the prompt instead. | | `--tls-redirect` | Also add an HTTP→HTTPS 301 redirect + ACME webroot on port 80. Port 80 is privileged, so it also switches on `CAP_NET_BIND_SERVICE` in the unit (kept on upgrade, as with `--port`; see §6), and `--open-firewall` then opens 80 as well. | | `--no-tls` | Skip the TLS prompt — stay plain HTTP behind a proxy. | | `--secret-key KEY` | The master key for encrypting stored secrets (SMTP / CAPTCHA / plugin passwords). Persisted as a **root-only systemd drop-in** (`/etc/systemd/system/runway.service.d/30-secret-key.conf`, env var `RUNWAY_SECURITY_SECRET_KEY`). **Leave it off to auto-generate one on first install** (so secret storage never silently fails — even with `-y`). An existing key is **kept** on upgrade (never rotated). Pass an explicit value only to reuse a known key (e.g. migrating a deployment). **Back it up** — losing or changing it makes existing `ENC(...)` values undecryptable. | | `--java-home DIR` | The JDK/JRE 25+ to run under (else auto-detected). The installer takes the first of these whose `bin/java` reports version 25 or later: this flag, then `$JAVA_HOME`, then `/usr/lib/jvm/` folders matching `*zulu*25*`, `*temurin*25*`, `*-25-*`, `java-25-*`, `jdk-25*`, `jre-25*`. A `--java-home` older than 25 is passed over without an error, so check the `java home` line it prints. With none found it warns and writes `/usr/lib/jvm/java-25-openjdk` into the unit; fix the unit's `JAVA_HOME` then. | | `--open-firewall` | Best-effort: open the listen port (and 80 with `--tls-redirect`) in **firewalld** or an already-active **ufw** (**§16**). | | `--firewall-ports LIST` | Comma-separated TCP ports to open (implies `--open-firewall`). | | `--no-firewall` | Never touch the firewall — **wins over** `--open-firewall` and skips the prompt. | | `-y`, `--yes`, `--non-interactive` | Non-interactive: accept all defaults. Without it the installer asks only when its input is a terminal, so a run from a pipe, a script or cron is already non-interactive. | | `--update-essential-plugins` | Accepted and ignored (it logs that it has nothing to do). **Every upgrade** refreshes the bundled essential plugin (`protection`) from the new release; see §15 *Essential plugins on upgrade*. | | `--heap SIZE` | Set the JVM heap `-Xmx` (e.g. `2g`, `1536m`) via an **upgrade-surviving drop-in** (`runway.service.d/20-heap.conf`) instead of the installer-rewritten main unit. `SIZE` is a whole number with an optional `k`, `m` or `g` (either case); a value with any other character (`2GB`, `1.5g`) is refused before the install starts. The drop-in sets `JAVA_OPTS=-Xms256m -Xmx` and is rewritten whole each time you pass `--heap`. See **Memory tuning** in **§15**. | | `--memory-max SIZE` | Set a systemd `MemoryMax` cgroup backstop (e.g. `3g`, `1945M`) via drop-in `10-memory.conf`. Keep it ≥ heap + headroom. See **§15**. | | `--dry-run` | Print every privileged action instead of doing it (change nothing). | | `-h`, `--help` | Show help. | | `--extract DIR` | (On the `.bin` itself) unpack the bundle into `DIR` without installing. | **Where the `.bin` unpacks.** Before it installs, the `.bin` unpacks itself into a new folder under `$TMPDIR` (or `/tmp` when `TMPDIR` is unset) and deletes that folder when it ends. On a host whose `/tmp` is small, point it elsewhere: `sudo env TMPDIR=/var/tmp ./runway-.bin`. Or unpack it yourself with `--extract DIR` and run `DIR/runway-/scripts/install.sh` with the same options. **`--port` and `--tls-keystore` are for the first install only.** They write `external/application.yml` whole, and on an existing install that file also holds the setup wizard's superadmin pin and anything you added to it; replacing it would put the platform back into wizard mode with `/setup` open. So when the file already exists the installer **refuses** them, before changing anything, and names the keys to edit instead — `server.port`, `runway.tls.*` (§7.1) — then restart. An upgrade needs neither (**§15**); `--port 8080` (the default, never written) and the firewall flags are still accepted. On an existing install the interactive run does not ask about TLS or the port either. **What it lays down.** The installer is **idempotent** and separates *code* from *state* so an upgrade never clobbers your configuration or data (see **§5** for the layout, **§15** for upgrades). With the defaults it: 1. Creates the **service user** `runway` (a system account, `nologin` shell). 2. Creates the version-independent **data dir** `/opt/runway-data/` with `external/`, `logs/`, and `backups/`. 3. Unpacks the release to a **versioned dir** `/opt/runway-/` — `bin/` (the jar and the launcher), `scripts/` (the installer), and `seed/plugins/` (the bundled protection plugin as it ships, the copy you repair from — **§12**) — and symlinks `external/`, `logs/`, `backups/` from there into the data dir. 4. Flips the **`/opt/runway` "current" symlink** to the new release (this path is `RUNWAY_HOME`). 5. Sets ownership to the service user and, on SELinux-enforcing hosts, **relabels contexts** (`restorecon`) — this is required, not optional (**§16**). 6. Installs/updates the **systemd unit** `/etc/systemd/system/runway.service` with the detected `JAVA_HOME`, enables it, and **starts the service**. **Verify the install.** After it finishes: ```bash systemctl status runway # should be "active (running)" journalctl -u runway -e # startup log — look for the listen port and "WIZARD" mode ls -l /opt/runway # -> runway- (the current symlink) ls /opt/runway-data # external logs backups ``` Then open the server in a browser and complete the first-run setup (**§4**) — a fresh install boots in **WIZARD** mode and every request funnels to the setup page. ## 4. First-run setup A brand-new install has no accounts and no sites, so Runway boots in **WIZARD mode** and serves a single open setup page — every other path is funneled to it. The mode is **derived**, not a knob: the platform is in WIZARD mode precisely while the application-superadmin **pin** (`runway.security.app-master-id`) is unset in `external/application.yml`. Once the wizard writes it, the next launch comes up in **ACTIVE mode** and the whole wizard layer is gone. Config can never contradict reality because there is no separate `mode` setting to drift. Writing the pin is a **merge, not a rewrite**: any settings already in `external/application.yml` — self-managed TLS (§7.1), proxy CIDRs, a custom `server.port`, whatever the installer or you put there — are **preserved** through first-run setup (the wizard only sets the pin). If that file exists but is not valid YAML, setup stops with a clear message rather than overwriting it, so a hand-edit is never lost. **Security note.** Because there are no accounts yet, the setup page is **unauthenticated**. Reach it only over localhost or from behind your reverse proxy until setup completes — do not expose `/setup` to the internet. **Run the wizard.** Open the server (e.g. `http://:8080/setup`, or just any URL — it redirects to setup). You provision **two administrators, one per realm** in a single step: - **Application superadmin** — runs the *platform* (sites, plugins, application users). You give a username, an optional display name and recovery email, and a password (min 8 chars). There is exactly one, and it is **pinned** — it can never be deleted, disabled, demoted, or renamed from within the realm (**§9**). - **Default site administrator** — the **superadmin of the first site** the wizard seeds. This is a separate **tenant-realm** identity (username, password and an optional recovery email); the two realms never cross, so this is a distinct account from the application superadmin. Give it the recovery email here, or later on **Site masters** (**§10**), so it can use *Forgot your password?*. Submit **"Create administrators & restart"**. The wizard: 1. Seeds a first site from the **starter template** and marks it the **default (catch-all)** site (**§10**) — so the deployment answers any hostname out of the box. The starter is a real, styled **two-page site** (a home page and an about page) sharing one master template, not a blank placeholder: it is meant to be edited, not replaced. There is no other choice to make here. 2. Provisions that site's superadmin (the tenant admin you entered). If this step fails, it rolls back to a clean slate so you can simply retry. 3. Creates the pinned application superadmin, writes `external/application.yml` with the pin (mode `600` — it holds a secret), and triggers a supervised relaunch. **Confirm it worked.** The success page says setup is complete and the server is restarting. Under systemd the JVM exits with the relaunch code and systemd restarts it into ACTIVE mode (**§6**). Within a few seconds: ```bash journalctl -u runway -f # you should see a fresh startup, now WITHOUT WIZARD mode ls -l /opt/runway-data/external/application.yml # exists, mode -rw------- (600) ``` Then sign in to the **operator console** at `/app/login` with the application-superadmin credentials — you land on the console home at `/__app`. The site administrator signs in separately at the site's `/login`. Use the server's address, or a host name of the first site (it is the default site): once you give other sites their own host names, the console does not answer on those (**§8.6**). ## 5. Deployment layout Runway keeps all editable state in an **external folder** (no database). The kernel resolves these paths from `runway.storage.*`; only `external` is normally set, the rest default relative to it: | Key | Default | Holds | |---|---|---| | `runway.storage.external` | `./external` | The operator-editable root: `application.yml`, shared templates/static/i18n, app-level stores, `sites/` | | `runway.storage.sites` | `/sites` | One self-contained folder per site (its data, presentation, users, config) | | `runway.storage.backups` | `./backups` | Per-site backup archives | | `runway.plugins.root` | `/plugins` | Installed plugins, one folder each (**§11**). Normally left unset; when set, both the loader and the console's install/uninstall/enable/disable use it | `runway.storage.stats` and `runway.storage.logs` are not settings (bandwidth is metered per site, in `sites//stats/`; the launcher's `runway.out` lives in the deployment's `logs/`, outside Runway's control). A configuration that sets either starts normally and logs one `WARN` naming the key — delete the line. **The layout marker.** On its first start with a data folder, Runway writes `external/layout.yml` (`version: 1`). It records which version of this folder's layout the data is in, and it is checked before anything else touches the folder: a release older than the layout refuses to start rather than write into it (see **§15**, *Rolling back*). Do not edit or delete it. **Every file, and who owns it.** The full `external/` and `sites//` inventory — each file, the class that reads and writes it, and what an upgrade may change about it — is in [CONFIGURATION-AND-DATA-STABILITY.md](CONFIGURATION-AND-DATA-STABILITY.md) §2. ## 6. Running the service The installer registers Runway as a **systemd service**, which is the normal way to run it. The service is driven by the launcher script `bin/runway.sh`, which you can also run by hand. **Under systemd (recommended):** ```bash sudo systemctl start runway # start sudo systemctl stop runway # stop sudo systemctl restart runway # restart sudo systemctl status runway # is it running? sudo journalctl -u runway -f # follow the log ``` The unit uses `Type=simple` and runs the launcher in **foreground** mode (`ExecStart=/opt/runway/bin/runway.sh -f`) so systemd gets the real JVM PID and `SIGTERM` reaches Java directly. Two exit codes matter and are handled by the unit: - **42** is Runway's *supervised-relaunch* request (used by the first-run wizard and by plugin install/enable/disable). `RestartForceExitStatus=42` makes systemd restart even though 42 is a clean exit, and `SuccessExitStatus=143 42` keeps both a normal `SIGTERM` shutdown (143) and the relaunch (42) from being logged as failures. This is why installing a plugin (**§11**) simply needs a restart action, not a manual `systemctl` dance. The unit also sandboxes the process (`NoNewPrivileges`, `ProtectHome`, `ProtectSystem=strict`, `PrivateTmp`) and grants write access only to the data dir: the installer writes `ReadWritePaths=/opt/runway-data` (the template in `scripts/runway.service` names the three data folders under `/opt/runway`; the installer replaces that line). Anything Runway must write — a log file you configure (Operations §3), an off-host backup folder (§13) — therefore has to be under `/opt/runway-data`, or added to `ReadWritePaths` in a drop-in. **The installer rewrites the main unit on every run.** Put lasting changes in drop-ins under `/etc/systemd/system/runway.service.d/`. The installer leaves your own files there alone; it writes only its own `10-memory.conf` and `20-heap.conf` (when you pass `--memory-max` or `--heap`) and `30-secret-key.conf` (on the first install). **Binding a privileged port** (80/443 without a proxy) needs `CAP_NET_BIND_SERVICE`. The installer switches it on in the main unit when you install with `--port` below 1024 or `--tls-redirect`, and an upgrade keeps it when the unit it replaces had it switched on. It cannot read your port from `application.yml`, though: if you move to a privileged port later by editing that file, give the service the capability yourself, in a drop-in: ```bash sudo mkdir -p /etc/systemd/system/runway.service.d printf '[Service]\nAmbientCapabilities=CAP_NET_BIND_SERVICE\nCapabilityBoundingSet=CAP_NET_BIND_SERVICE\n' \ | sudo tee /etc/systemd/system/runway.service.d/40-net-bind.conf sudo systemctl daemon-reload && sudo systemctl restart runway ``` **The launcher directly** (e.g. on a host without systemd, or for a quick manual run). It resolves `RUNWAY_HOME`, the executable jar, and `JAVA_HOME`, then: ```bash bin/runway.sh # detached: a supervisor backgrounds the JVM, writes runway.pid, # logs to logs/runway.out, and relaunches on exit 42 bin/runway.sh -f # foreground: exec the JVM (what systemd uses); also --foreground bin/runway.sh stop # stop the supervisor (which SIGTERMs the JVM); also --stop bin/runway.sh -h # the launcher's help; also --help ``` Detached mode refuses to start a second instance while one is running. It keeps two PID files in `RUNWAY_HOME`: `runway.pid` (the supervisor) and `runway.jvm.pid` (the JVM it is running now); `stop` uses both and removes them. Any other argument is passed to Spring as it is, and everything after `--` is passed even if it looks like a launcher option: `bin/runway.sh -f --server.port=9090`. Environment overrides (honored by both the launcher and the unit's `Environment=`): `RUNWAY_HOME`, `RUNWAY_JAR`, `RUNWAY_OPTS` (extra Spring args, e.g. `--server.port=`), `JAVA_HOME`, `JAVA_OPTS` (heap/GC — default `-Xms256m -Xmx1g`). The launcher always adds `--enable-native-access=ALL-UNNAMED` after your `JAVA_OPTS`: the Brotli compression library and Hazelcast (clustering) use native code, which Java 25 restricts without it. Do not remove it from a hand-written start command. **Verify:** `systemctl status runway` shows `active (running)`; `journalctl -u runway -e` shows the banner with the bound port; hitting the site in a browser returns a page (the default site, if no host is bound). ## 7. TLS & reverse-proxy setup **Trusting forwarded headers (implemented).** Runway honors `X-Forwarded-*` headers (client IP, host, scheme) **only** from proxy peers you list in `runway.proxy.trusted-cidrs`; from any other peer the headers are ignored and the raw connection is used, so a directly-reachable instance cannot spoof them. The container's own forwarded-header handling is off (`server.forward-headers-strategy: none`) — Runway's gated filter is the sole handler. Defaults: forwarding is on (`runway.proxy.forwarded-headers: true`) and the shipped config trusts loopback only (`127.0.0.1/32`, `::1/128`) for a same-host proxy. **Behind an off-host proxy, add its exact IP** (prefer a single address over a broad range); an **empty** `trusted-cidrs` trusts nothing (every request attributed to its direct peer, logged at startup). A catch-all (`0.0.0.0/0`, `::/0`, or ranges that add up to one, such as `0.0.0.0/1` with `128.0.0.0/1`) trusts every client to fake its address: Server settings refuses it, and one set in `application.yml` is warned about at startup. Never put a tenant-editable value here — it is an isolation/abuse boundary. **Which address is the client.** Each proxy *appends* the address it received the request from to `X-Forwarded-For`, so everything to the left of what your own proxies wrote may have come from the client itself. Runway therefore reads the list **from the right**: it skips the addresses in `trusted-cidrs` and takes the first one that is not a proxy you trust. That is the address your nearest trusted proxy saw, and it is what rate limits, login lockouts, the access log and every plugin see. An entry that is not an IP address where one is needed (`unknown`, a host name) attributes the request to the proxy instead; Runway never looks names up. So list **every** proxy of yours in `trusted-cidrs`, a CDN in front of the reverse proxy included, or the client will be taken to be the outermost one. **Only the `X-Forwarded-*` headers are read.** The standard `Forwarded` header (RFC 7239) is ignored, even from a trusted proxy: a client could otherwise send its own `Forwarded` through a proxy that only manages `X-Forwarded-*` and choose its address, host and scheme. A proxy that sends only `Forwarded` must be set to send `X-Forwarded-For`, `X-Forwarded-Proto` and `X-Forwarded-Host` instead. From a trusted proxy Runway also applies `X-Forwarded-Port` and `X-Forwarded-Prefix` (and `X-Forwarded-Ssl`), so whatever of these the proxy does not write itself comes from the client. The proxy should **set** (replace) `X-Forwarded-Proto` and `X-Forwarded-Host`, and **delete** the others it does not set: ``` # HAProxy http-request set-header X-Forwarded-Proto https if { ssl_fc } http-request set-header X-Forwarded-Proto http if !{ ssl_fc } http-request set-header X-Forwarded-Host %[req.hdr(host)] http-request del-header X-Forwarded-Port http-request del-header X-Forwarded-Prefix http-request del-header X-Forwarded-Ssl option forwardfor ``` nginx: `proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;`, `proxy_set_header X-Forwarded-Proto $scheme;`, `proxy_set_header X-Forwarded-Host $host;`, and `proxy_set_header X-Forwarded-Port "";`, `proxy_set_header X-Forwarded-Prefix "";`, `proxy_set_header X-Forwarded-Ssl "";` (an empty value removes the header). **Check it.** **Settings → About Runway → This request** shows the request that loaded the page as Runway saw it: the connection it came from and whether that is a trusted proxy, the `X-Forwarded-For` list as received (marked *ignored* when the peer is not trusted), the client address Runway used, and the scheme and host. Behind a correctly trusted proxy the client address is your own public address, not the proxy's. To check that a client cannot choose its address, open the page once with a forged header (a browser extension that adds `X-Forwarded-For: 192.0.2.1`, or `curl -H 'X-Forwarded-For: 192.0.2.1'` with a signed-in session cookie). Behind a proxy that appends to the header (`option forwardfor`, `$proxy_add_x_forwarded_for`) the list shows `192.0.2.1` on its left; behind one that replaces it, `192.0.2.1` does not appear at all. Either way the client address stays yours. **The host name behind a proxy.** Runway decides which site a request is for, and whether the operator console answers (**§8.6**), from the host name it sees: the request's own `Host`, or the forwarded host from a trusted proxy. So the proxy must pass the visitor's host name on (`proxy_set_header Host $host;` in nginx, the default in HAProxy and Caddy). To give the console a host name of its own, point that name at Runway like any other and list it in `runway.console.hosts`. ### 7.1 Self-managed TLS (optional) By default Runway serves **plain HTTP behind a TLS-terminating reverse proxy** — that stays the recommended topology. When no proxy is wanted, Runway can **terminate TLS itself**: put the certificate + key in a **PKCS12 keystore** and enable it in the external `application.yml`: ```yaml runway: tls: enabled: true keystore: /opt/runway-data/external/tls/runway.p12 keystore-password: "…" # a secret — this file is chmod 600 key-alias: runway # the keystore entry holding the server key ``` Set TLS **only** through `runway.tls.*`. Spring Boot's own `server.ssl.*` keys are filled from them by the shipped `application.yml`; setting `server.ssl.*` yourself would bypass Runway's startup checks (keystore readable, password set, alias present, each failing with a message that says what to fix), and the startup log line would still say that TLS does not terminate here. **Convert a PEM certificate to the PKCS12 keystore.** ACME clients (certbot, acme.sh) and most CAs issue **PEM** files — a certificate (usually with its intermediate chain) plus a private key — while Runway wants a **PKCS12** keystore. Convert them with `openssl`. For the typical Let's Encrypt layout under `/etc/letsencrypt/live//`, where `fullchain.pem` is the leaf certificate **plus** the intermediate chain and `privkey.pem` is the private key: ```bash openssl pkcs12 -export \ -inkey privkey.pem \ -in fullchain.pem \ -name runway \ -out runway.p12 \ -passout pass:'CHANGE-ME' ``` - **`-name runway`** is the keystore **alias** — it MUST equal `runway.tls.key-alias` (default `runway`), or startup fails to find the key. - **`-passout pass:'CHANGE-ME'`** sets the keystore **password** — it MUST equal `runway.tls.keystore-password` in the external `application.yml`. - **`-in fullchain.pem`** must be the leaf certificate **followed by** its intermediate chain (that is exactly Let's Encrypt's `fullchain.pem`). If your cert and chain are in **separate** files, use `-in cert.pem -certfile chain.pem` instead. - Add **`-passin pass:''`** if the private key is itself password-protected. - The output is already PKCS12 — `runway.tls.keystore-type: PKCS12` is the default, so no extra flag is needed. `keystore-type` takes any keystore type the Java runtime knows (for example `JKS` for an older Java keystore); a type it does not know, like a file that is not of the stated type, stops startup with a message naming the keystore and the type. Then lock it down (it holds the private key) and place it where `runway.tls.keystore` points: ```bash install -o runway -g runway -m 600 runway.p12 /opt/runway-data/external/tls/runway.p12 ``` **Verify** it before enabling TLS — both the alias and the password must match your config: ```bash # lists the entries; must show one `runway` alias (prompts for the keystore password): keytool -list -keystore runway.p12 -storetype PKCS12 # or inspect the certificate's subject / issuer / validity dates directly: openssl pkcs12 -in runway.p12 -nodes -passin pass:'CHANGE-ME' | openssl x509 -noout -subject -issuer -dates ``` > **On renewal, just re-run the `openssl pkcs12 -export` above** (same `-out`, `-name` and password). With > `watch-keystore` on (the default), Runway reloads the new certificate **live** — no restart. Wire that > one-liner into your ACME client's `--deploy-hook` / renew hook. Startup **fails fast** — with a precise message — if TLS is enabled with a missing/unreadable keystore or a blank password, and one log line always states where TLS terminates (`TLS terminates HERE: HTTPS on port …` vs `TLS does NOT terminate here: plain HTTP …`), so the topology is never ambiguous. **Hot certificate reload (no restart).** With `watch-keystore: true` (the default when TLS is on), Runway watches the keystore file and **reloads the certificate live when it changes** — so a renewal that rewrites the keystore is picked up without a restart (only new TLS connections use the new cert; existing ones drain naturally). Point your ACME client's deploy/renew hook at rewriting the PKCS12 keystore and you are done; a half-written or invalid keystore is logged and the **previous** certificate keeps serving (degrade, don't crash). Set `watch-keystore: false` to opt out and reload by restart instead. **HTTP→HTTPS redirect + Let's Encrypt.** With TLS on, an optional **plain-HTTP listener** (default port 80) 301-redirects every request to the HTTPS listener — **except** `/.well-known/acme-challenge/`, which is served as plain files from `acme-challenges-dir`, so **ACME HTTP-01** issuance/renewal keeps working with the redirect on (point `certbot`/`acme.sh` `--webroot` at that directory, then convert the issued PEMs into the PKCS12 keystore as shown above — the hot reload picks up the new certificate, no restart needed): ```yaml runway: tls: redirect-http: enabled: true port: 80 # binding <1024 needs CAP_NET_BIND_SERVICE — see §6 / §16 acme-challenges-dir: /opt/runway-data/external/acme-challenges ``` The redirect answers at the **connector level** — nothing on the plain port ever reaches the application — with hardened handling (ACME tokens are shape-checked and confined to the webroot; symlinks and over-sized files are refused; malformed `Host`/path values are rejected `400`). `status` is the redirect's HTTP status: `301` (the default, permanent), `308` (permanent, and the client keeps the request method), `302` or `307` (temporary). Any other value stops startup with a message naming it. > **The webroot's permissions are yours to guard:** everything in `acme-challenges-dir` is served to > anyone on the plain port. Only the ACME client should be able to write there — never the application or > an untrusted user (e.g. `chown` it to the user running certbot and keep it `700`/`750`). **Privileged ports & firewall.** Binding 443 and/or 80 directly needs `CAP_NET_BIND_SERVICE`. An install with `--tls-keystore` on 443 or with `--tls-redirect` already has it, and upgrades keep it. If you switched to these ports afterwards by editing `application.yml`, give it with the drop-in shown in **§6**. Open both ports in the host firewall (e.g. re-run the installer with `--firewall-ports 80,443 --open-firewall`, or your firewall tooling directly). > **Verify:** `curl -sI https:/// | head -1` answers over TLS; `curl -sI http:///x` returns > `301` with a `Location: https://…`; and with a file `t` in the webroot, > `curl -s http:///.well-known/acme-challenge/t` returns its content instead of a redirect. Set `runway.tls.sni-host-check: false` only for a **re-encrypting proxy** that connects by the backend's IP while forwarding the real Host (Jetty's SNI/Host consistency check would otherwise reject those requests); leave it on everywhere else. ## 8. Configuration reference Runway is configured through **`application.yml`**, following the house convention: a reference copy of every default ships inside the jar (on the classpath), and your **external override** at `external/application.yml` (i.e. `/opt/runway-data/external/application.yml`) is loaded **above** it and wins key-by-key. Only set in the external file the keys you actually change. The first-run wizard creates this file and writes the application-superadmin pin into it; add your own keys alongside. Because it holds a secret (the pin, and any `runway.security.secret-key`), keep it mode `600`, owned by the service user (**§16**). Changes take effect on the **next restart** (`systemctl restart runway`), except where noted. Runtime-editable resources — messages/i18n, templates, static assets — live under `external/` and reload without a restart. **Most settings are set in the console, not here.** Every setting that can be changed safely while the server runs has a page in the application console: **Settings → Server settings** (`/__app/config/server`), and the **Settings** button on Backups, Bandwidth, Activity → Logs and Plugins (§8.5). Those pages save to `settings:` in `external/platform.yml`. What stays in `external/application.yml` is what the server needs before it can start or what is only safe to change on the host: the port, TLS, the secret key, the storage paths, clustering, the audit switch `runway.app-activity.enabled`, and the console's host names `runway.console.hosts` (a wrong value would lock you out of the console, so the file is where you fix it, **§8.6**). [SETTINGS-REFERENCE.md](SETTINGS-REFERENCE.md) lists every host-only key with its reason. **One home per setting; the host wins.** The console's values are loaded *below* `external/application.yml`, environment variables and command-line arguments. A key you set there by hand wins, and the console shows that field disabled with the note *"Set on the server in external/application.yml, which wins over this page."*, followed by what removing the line would do: the console holds the same value, or the value is the default (removing it changes nothing); the console holds a different value (that one takes effect); or the console holds none and the default takes effect. A list counts in either form: a comma string (`trusted-cidrs: "10.0.0.5/32,::1/128"`) or a YAML list (`trusted-cidrs: [10.0.0.5/32, ::1/128]`). **Moving a key from `application.yml` to the console: one restart, with "Use the file's value".** While a key's line is in the file, its field is locked, so the console cannot be given a value first. Moving it the plain way — delete the line, restart, set the value on the page, restart again — costs **two restarts, and between them the server runs on the default**. For a key whose default differs from your value (your proxy's address in trusted proxy addresses, a monitoring token, the CSP mode) that is a window with the wrong value. A locked row whose removal would change something offers **Use the file's value** (**Use the server's value** when an environment variable or a command-line argument sets it). It copies the value the server runs with now into the console's store. Then: 1. On the locked row, click **Use the file's value** and confirm. The field stays locked (the file still wins), and the row now says *"The console holds the same value, so removing it there changes nothing."* 2. Delete the key's line from `external/application.yml`. 3. Restart once (`sudo systemctl restart runway`). Nothing changes: the console's copy is what the server reads now. The value goes through the same checks as a save, and nothing is stored when one fails: a value the console refuses (a catch-all trusted proxy, a value containing `${`, a number outside the console's range) stays on the host until you correct it there. A token needs `runway.security.secret-key`: it is stored encrypted, like a token typed on the page, and never shown. A token the host sets to `""` removes the console's stored token, since no token is what runs. A blank value the console cannot hold is refused, because a blank field on the console means the default (an empty `runway.compression.mime-types`, say, which compresses nothing): keep that one on the host. The copy is recorded in the activity log, with the key and never the value. Values copied this way are listed with the other changes saved since the start, but they change nothing until the line is removed and the server restarts. Two keys do not follow this rule. **Password strength** (`runway.security.password-strength`): the value chosen on Settings → Platform settings wins over `application.yml`, environment variables and command-line arguments, and that field is never locked (§8.1). **The protection plugin's settings**: what its settings screen saves in `external/plugin-settings/protection.yml` wins over `external/application.yml`, and the form shows no lock; an environment variable or a command-line argument still wins over both. **Keys.** The tables below list the most-used keys; anything not listed is left at its default. The complete `runway.*` inventory, with types and defaults, is in [CONFIGURATION-AND-DATA-STABILITY.md](CONFIGURATION-AND-DATA-STABILITY.md) §1, and your IDE completes every key from the configuration metadata shipped in the jar. **`runway.*` — the platform's own keys:** | Key | Default | Meaning | |---|---|---| | `runway.storage.external` | `./external` | Root of the operator-editable folder (see **§5**). | | `runway.storage.sites` | `/sites` | Where per-site folders live. | | `runway.storage.backups` | `./backups` (deployment root) | Where per-site backup archives are written (**§13**). | | `runway.plugins.root` | `/plugins` | Where plugins are installed and discovered (read from the environment before startup). The console's install/uninstall/enable/disable work in the same folder. | | `runway.operator.ui-languages` | `[en, es]` | Languages the operator console's topbar switcher offers (BCP-47 codes, in display order). English and Spanish ship; any other language needs your own translation in `external/i18n/` (*Translating the console*, below). | | `runway.operator.default-language` | `en` | Fallback console language when the browser requests none offered. | | `runway.console.hosts` | _(empty)_ | The host names the operator console answers on (case and port ignored); every other host gets a `404` for the console's paths. Empty: the default site's host names and host names that serve no site. Host only, applies after a restart. **§8.6**. | | `runway.compression.enabled` | `true` | Master switch for the single Brotli+gzip response-compression filter. Set `false` when a fronting proxy already compresses. Jetty's own gzip (`server.compression`) stays off either way. | | `runway.compression.max-buffer-bytes` | `4194304` (4 MiB) | Largest response buffered to compress; anything larger streams through uncompressed. The buffer is held in memory **per response being sent**, so the worst case is this size times the busy request threads. `0` or a negative value (possible only in `application.yml`; the console takes 64 KiB to 256 MiB) sends every response uncompressed. | | `runway.compression.mime-types` | `text/html`, `text/xml`, `text/plain`, `text/css`, `text/javascript`, `application/javascript`, `application/json`, `application/xml`, `image/svg+xml` | The content types that are compressed, matched on the type without its `charset`. **A list you set replaces this one**, so repeat the defaults you want to keep. An empty list in `application.yml` compresses nothing; a blank field on the console restores this default. Leave out formats that are already compressed (images, fonts, zip). | | `runway.compression.gzip.enabled` / `.min-size` | `true` / `1024` | Offer gzip; skip bodies below the minimum. | | `runway.compression.brotli.enabled` / `.quality` / `.min-size` | `true` / `5` / `1024` | Offer Brotli (needs the brotli4j native lib; falls back to gzip if absent). Quality `0..11`: lower is faster and compresses less, higher is smaller and costs more CPU on every response; 4 to 6 suit compressing as pages are sent. In `application.yml`, a value above 11 or below -1 stops startup (the library refuses it; -1 asks for the library's own default). | | `runway.security.app-master-id` | _(blank)_ | The pinned application-superadmin principal id. **Written by the wizard** — its presence flips WIZARD → ACTIVE. Do not edit by hand. | | `runway.security.password-strength` | `STANDARD` | Argon2id memory-cost profile for **new** passwords: `STANDARD` (19 MiB) or `HIGH` (32 MiB). The Settings screen can override this (**§8.1**). | | `runway.security.max-concurrent-hashes` | `8` | Most password hashes computed at once before requests fail "busy" — bounds heap under a login flood. Read once at startup (Settings → Server settings → Capacity, or here); at least `1` — `0` or a negative value stops startup. | | `runway.security.acquire-timeout-millis` | `2000` | How long a request waits for a hashing slot before failing "busy". | | `runway.security.secret-key` | _(installer-set)_ | Master key for AES-256-GCM encryption of every stored secret (platform SMTP password or OAuth2 client secret, per-site CAPTCHA secrets, `secret`-typed plugin settings). The installer generates one on first install and stores it in a root-only systemd drop-in as `RUNWAY_SECURITY_SECRET_KEY` (see `--secret-key`, §3); Spring's relaxed binding maps that env var to this property. **While blank the secret cipher is unavailable and no secret can be saved** — the app console shows a persistent warning on every page until it is set. Holds a real secret — never in the classpath default. | | `runway.proxy.forwarded-headers` | `true` | Whether to honor `X-Forwarded-*` at all (still only from trusted peers; the standard `Forwarded` header is never read) — see **§7**. | | `runway.proxy.trusted-cidrs` | `127.0.0.1/32`, `::1/128` | Proxy peers whose forwarded headers are trusted. The **bound default is empty** (trust nothing); the shipped file seeds loopback. **§7**. | | `runway.http.min-request-data-rate` | `4096` | The slowest a request body may arrive, in **bytes per second**, before Runway answers `408 Request Timeout` and frees the request thread. Without it a client sending a byte now and then kept a thread for as long as it liked (the idle timeout only limits one stalled read). Measured from the body's first byte on what has arrived, so a server slow to start reading is never blamed. 4096 (4 KiB/s) is below any real connection; `0` turns the check off. Set on **Settings → Server settings → Request limits**; applies after a restart. | | `runway.i18n.cache-seconds` | `5` | How often a message lookup **outside** a public page (an error page, a plugin's background text) and the operator console's own bundle re-check their files on disk (`0` = on every lookup). Public pages re-check on every request, so a bundle edited on disk shows on the next page view, under a new ETag. | | `runway.csp.mode` | `report` | Content-Security-Policy delivery: `report` (report-only — violations are logged, nothing is blocked), `enforce`, or `off`. Upper or lower case; blank means `report`. Any other value (`enforced`, say) stops startup with a message naming it. See **§8.4**. | | `runway.csp.strict-dynamic` | `true` | `'strict-dynamic'` on the nonced pages. `false` rolls the whole estate (console **and** public pages) back to the host allowlist. **§8.4**. | | `runway.csp.public-strict-dynamic` | `true` | Public tenant pages get a nonce derived from the page version + `'strict-dynamic'`, stamped at the edge on the scripts the allowlist policy would have run (same-origin or allowlisted `src`; never inline). `false` keeps public pages on the host allowlist. Needs `strict-dynamic: true`. **§8.4**. | | `runway.csp.extra-hosts` | `[]` | Extra hosts an operator allowlists for the fetch directives and `frame-src` (a CDN, an analytics host), on **every site's** pages (the console calls it *Extra allowed hosts (all sites)*). A host only one site needs belongs on **Settings → Embed hosts**. **§8.4**. | | `runway.http-cache.public-pages` | `public, max-age=300, stale-while-revalidate=60` | The `Cache-Control` header of a public page: browsers and shared caches may keep it 5 minutes, then serve it one more minute while they check for a newer version. A page also carries an ETag that changes with its content, so a cache that asks again gets the new page at once. (A page whose content widget reads the request's query, such as a search results page asked with a query, is sent `private, no-cache` and no ETag instead.) `no-cache` makes every visit ask. A page's own **Cache-Control** field in the page editor wins over this value. Blank means this default. | | `runway.http-cache.assets` | `public, max-age=86400` | The header of a site's files under `/static/` (one day), and always of its documents under `/static/doc/`, which can be replaced in place. Blank means this default. | | `runway.http-cache.plugin-assets` | `public, max-age=3600` | The header of the files plugins serve under `/__plugin//static/` (their styles and scripts): browsers keep them an hour, then ask again and get a `304` while the file is unchanged (each file carries an ETag of its content). An hour rather than a day because a plugin file keeps its name across upgrades. Accepts `public`, `private`, `max-age`, `s-maxage`, `stale-while-revalidate`, `stale-if-error`, `must-revalidate`, `proxy-revalidate`, `no-transform`, `immutable`, and `no-cache` or `no-store` alone; another value logs a warning and uses the default. Blank means this default. | | `runway.http-cache.immutable-extensions` | `woff2, woff, ttf, otf, eot` | Files under `/static/` with these extensions (any case, with or without the dot) get the immutable header below instead. Add `css` or `js` only if the site's file names change with their content (`app.3f9c2.js`): a browser never asks again for an immutable file, so an edited `site.css` under the same name would stay old for a year. An empty list makes no file immutable. | | `runway.http-cache.immutable-assets` | `public, max-age=31536000, immutable` | The header for those files: kept a year and never re-checked, not even on reload. Blank means this default. | **`server.*` / `spring.*` — framework keys Runway pins (change with care):** | Key | Shipped value | Why | |---|---|---| | `server.port` | `8080` (Boot default; unset) | The HTTP listen port. Override with `RUNWAY_OPTS=--server.port=N`. | | `server.forward-headers-strategy` | `none` | The container's own forwarded-header handling is **off** — Runway's gated filter is the sole handler, so a direct client cannot spoof `X-Forwarded-*` (**§7**). Do not turn this on. | | `server.error.whitelabel.enabled` | `false` | Runway serves its own error pages; the Spring whitelabel page is disabled. | | `spring.config.import` | `optional:file:external/application.yml` | Loads your external override above the classpath defaults. | | `spring.web.resources.add-mappings` | `false` | The page controller owns the catch-all `/**`; Boot's default static `/**` mapping is off so it can never shadow a page. | | `spring.servlet.multipart.max-file-size` / `max-request-size` | `256MB` | The largest upload the platform accepts is a site backup zip (restore-from-upload); the 1 MB Boot default would reject any real backup. | | `spring.security.filter.order` | `100` | Runs Spring Security's chain **after** the multi-tenancy filters, so a chain can read the bound site — required for tenant isolation. Do not lower it. | | `spring.task.scheduling.pool.size` | `4` | Threads in the **one** scheduler pool every periodic task runs on: automatic backups (when enabled, §13) and plugins' scheduled work. Scheduling is always on. Four, so a long nightly backup cannot hold up short plugin jobs; threads start only as tasks are scheduled, so an idle pool costs nothing. Raise it only if a thread dump shows every `runway-scheduler-*` thread busy. | | `spring.task.scheduling.thread-name-prefix` | `runway-scheduler-` | Names those threads, so they are recognisable in a thread dump (`jcmd Thread.print`). | | `spring.thymeleaf.servlet.produce-partial-output-while-processing` | `false` | A page is rendered whole before its first byte is sent. Streamed instead (Boot's default), an error halfway through a render would leave the visitor a blank or cut-off page instead of the error page. Do not turn it on. | | `server.servlet.session.timeout` | `30m` | How long a signed-in session (the operator console and every site console) may sit idle before it signs out. A duration such as `30m`, `2h` or `1d`; a bare number means seconds. Set on **Settings → Server settings → Sessions**; applies after a restart. With clustering on, `runway.cluster.session-ttl` decides instead — keep the two equal (§2). | | `server.jetty.threads.max` / `.min` | `200` / `8` | The request thread pool (§2, *Capacity*). Set on **Settings → Server settings → Capacity**; applies after a restart; the minimum may not exceed the maximum. | | `server.jetty.connection-idle-timeout` | `30s` | How long a connection may make no progress before Jetty closes it — a request with nothing more to read, or a response the client has stopped reading. Jetty's own default, stated so it has one home. It is what ends a client that reads a large response too slowly; a request body that keeps trickling in is ended by `runway.http.min-request-data-rate` instead. | | `server.ssl.*` | from `runway.tls.*` | Filled from `runway.tls.*` (§7.1). Never set these yourself: they would bypass Runway's TLS startup checks. | | `management.endpoints.web.exposure.include` | `health, prometheus` | The only actuator endpoints served. Do not add others: everything under `/actuator/` is open to the superadmin and System admins without the console's CSRF protection, and an endpoint such as `heapdump` would hand out what the server holds in memory, secrets included. | | `management.endpoint.health.probes.enabled` | `true` | Adds `/actuator/health/liveness` and `/actuator/health/readiness` for a supervisor or load balancer. | | `management.endpoint.health.show-details` | `when-authorized` | The public health answer is only `UP`/`DOWN`; a signed-in operator also sees each check (e.g. the data folder's path). | | `logging.level.` | Boot's (`INFO`) | Raise one logger for diagnosis, e.g. `logging.level.mx.quest.runway.head: DEBUG`. Runway's own loggers are `runway.access` (one line per public request), `runway.protect` (edge rejections) and the `mx.quest.runway.*` packages. Set here, it applies after a restart (or set it for one run with `RUNWAY_OPTS=--logging.level.mx.quest.runway=DEBUG`). Easier: **Activity → Logs → Log levels** (`/__app/logs/levels`) changes a level at once and keeps it across restarts (in `platform.yml`); a level set here wins and shows locked there. **Default** on that screen puts a logger back to the level set here, or else its parent's; `ROOT` goes back to `logging.level.root`, or else `INFO`. Turn it back down afterwards: `DEBUG` on a busy server writes a lot. | | `logging.file.name` / `logging.file.path` | _(unset)_ | Unset, everything goes to the console stream (journald under systemd). Setting either also writes a log file, rotated by Spring Boot; see Operations §3. | Plugin settings are **not** placed in `application.yml`: app-level plugin settings live in their own file per plugin under `external/plugin-settings/.yml` and are edited from the console (**§11**). **Translating the console.** The console's text ships in the jar as `i18n/operator-messages.properties` (English, also the fallback for any language without its own file) and `operator-messages_es.properties` (Spanish). To correct a wording or add a language, put a file of the same name in `external/i18n/`: for example `external/i18n/operator-messages_fr.properties` for French. It needs only the keys you change; any key it lacks comes from the shipped files. Copy the keys from the shipped file (`unzip -p 'BOOT-INF/classes/i18n/operator-messages.properties'`) and write the file in **UTF-8**. A new language also needs its code added to `runway.operator.ui-languages` (Settings → Server settings → Console languages; applies after a restart) and a name for the switcher, the key `op.lang.` (`op.lang.fr=Français`); without it the switcher shows the key itself. Edits to these files are picked up while the server runs, within `runway.i18n.cache-seconds` (5 seconds by default). Mind one trap: a key in the unsuffixed `external/i18n/operator-messages.properties` wins over the **shipped Spanish** text too, because your folder is read before the shipped files; put a Spanish correction in `operator-messages_es.properties`. The console's **Settings** menu is a dropdown with two entries: **Platform settings** (§8.1, the editable settings below) and **About Runway** (§8.2, a read-only view of the running platform). ### 8.1 Platform settings A small set of platform-wide settings is edited from the operator console at **Settings → Platform settings** (`/__app/settings`, restricted to the application superadmin or a wildcard admin) and stored in `external/platform.yml` — application-realm state kept **outside every tenant folder**, so it never travels in a per-site backup: - **Default site** — the catch-all that answers requests whose `Host` isn't bound to any other site (see **§10**). Changing it takes effect immediately. - **Password strength** — the Argon2id memory-cost profile (`STANDARD` = 19 MiB, `HIGH` = 32 MiB) used for **new** passwords. It overrides the `runway.security.password-strength` value from `application.yml` and applies on the next restart; existing passwords are unaffected (Argon2id hashes are self-describing, so verification never breaks when the profile changes). - **Node name** and **Response compression** — a display name for this node (shown on About) and the master + per-encoding (Brotli / gzip) compression switches. Both apply immediately. The name shown is this field when it is set, else `runway.node.name` from the server's configuration, else the server's host name. So in a cluster, leave the field blank and give each node its own `runway.node.name` (an environment variable such as `RUNWAY_NODE_NAME=web-1` suits that); a value saved in the field wins over it. The name is only displayed; nothing else uses it. - **Platform mail (SMTP)** — the application's own mail account: host, port, From address, and optional authentication (a username and password, or an OAuth2 token for Microsoft 365) with STARTTLS or implicit TLS. With STARTTLS chosen, a relay that does not offer it fails the send rather than receiving the password in the clear, and with either TLS mode the relay's certificate must name its host. A relay that does not accept the connection within 10 seconds, or stalls for 30 seconds while sending, fails the send. It is used to send **password-recovery** links and any future operator notifications, for **both** the application and site consoles — and is **never** used for mail a site sends itself (a site keeps its own SMTP relay). The password is stored **encrypted** (leave the field blank on a later save to keep the stored one, as long as the server stays the same: see below), and a **Send test email** button verifies the account. See **§8.3**. The fields in detail: - Mail counts as configured — the *Forgot your password?* links appear and the test button works — only when **both** the host and the From address are set. - **Port** — blank means `587`; otherwise a number from 1 to 65535. - **STARTTLS** (a plain connection upgraded to TLS, usually port `587`) or **SSL** (TLS from the first byte, usually port `465`). If both are ticked, SSL is used and STARTTLS is ignored. With neither, the connection is not encrypted, and neither is the password when authentication is on. - **Authentication** — off by default; while it is off the username and password are not sent. - **Sign-in method** — *Username and password*, or *OAuth2 token (Microsoft 365)*: see *Microsoft 365 and other OAuth2 mail servers* below. The fields of the method not chosen are hidden but kept, so switching back does not lose them. - **A stored secret follows its server.** A blank password field keeps the stored password only while the host, port and username stay the same; when one of them changes, the password is cleared, the page says so, and it must be entered again. The OAuth2 client secret is kept only while the token endpoint, the client ID, the mail server (host and port) and the scope stay the same, because the secret goes to the endpoint and the token minted from it goes to the mail server; an OAuth2 account where one of them changes is not saved until the secret is entered again. This way someone who may edit this screen, but does not know the secret, cannot have Runway send it, or a token made from it, to a server of their choosing. The activity log's `platform.settings-changed` line names the settings each save changed (never their values) and any secret it cleared. - **Otherwise the password cannot be removed from this form:** with the same server, a blank field keeps the stored one. To remove it, delete the `smtp:` block (or its `password:` line) from `external/platform.yml` and restart (see *Editing platform.yml by hand* below). The same goes for the OAuth2 client secret (`oauthClientSecret:`). **Microsoft 365 and other OAuth2 mail servers.** Microsoft is retiring password sign-in to SMTP (SMTP AUTH with "Basic authentication") in Exchange Online: Microsoft has announced that it is turned off by default from the end of December 2026 (Message Center MC786329), and it already fails in a tenant whose security defaults or Conditional Access block legacy sign-in. Runway can sign in the way Microsoft requires instead: it obtains an **OAuth2 access token** with an application's own credentials (the *client-credentials* grant) and presents it to the mail server with SASL `XOAUTH2`. In the Microsoft 365 admin tools, once: 1. In **Microsoft Entra ID → App registrations**, register an application. Note its **Application (client) ID** and the **Directory (tenant) ID**, and under **Certificates & secrets** create a **client secret** (note its *value*, and when it expires). 2. Under **API permissions**, add the application permission **Office 365 Exchange Online → SMTP.SendAsApp** and **grant admin consent**. 3. In Exchange Online PowerShell, register the application's service principal and give it the mailbox Runway sends as: `New-ServicePrincipal -AppId -ObjectId `, then `Add-MailboxPermission -Identity -User -AccessRights FullAccess`. 4. Make sure **Authenticated SMTP** is enabled for that mailbox (Microsoft 365 admin center → the user → Mail → Manage email apps). OAuth2 still goes through SMTP AUTH. Then on this page: host `smtp.office365.com`, port `587`, **STARTTLS** on, **Authentication** on, sign-in method **OAuth2 token**, and: | Field | Microsoft 365 value | |---|---| | Username | the mailbox to send as (blank uses the From address) | | Token endpoint | `https://login.microsoftonline.com//oauth2/v2.0/token` | | Client ID | the application (client) ID | | Client secret | the secret's value (stored encrypted, like the password) | | Scope | `https://outlook.office365.com/.default` | Save, then **Send test email**. A failure says which step failed: *"no OAuth2 token"* means the token endpoint refused or could not be reached, and the message carries Microsoft's reason (an `AADSTS…` code: a wrong secret, a wrong tenant, missing consent); any other failure came from the mail server after the token was issued (for Microsoft, a missing `SMTP.SendAsApp` permission or mailbox permission, or Authenticated SMTP turned off). How it behaves: - **TLS is required.** An OAuth2 account must use STARTTLS or implicit TLS; the page refuses to save one without it, because a token, like a password, signs in whoever reads it. - **The token endpoint must be `https`** (`http` only to this machine's loopback address, for a local identity provider). Runway does not follow a redirect from it, so the client secret is only ever sent to the address you entered. - **Tokens are reused** until five minutes before they expire (Microsoft's last about an hour), so a burst of recovery mails costs one token request. A mail server that rejects a token makes Runway fetch a new one on the next send. - **Only `XOAUTH2` is offered** once OAuth2 is chosen: a server that does not support it fails the sign-in rather than receiving the token as a password. - **Remember the secret's expiry.** Microsoft client secrets expire (24 months at most); when it does, recovery mail stops with an `AADSTS7000222` error. Create a new secret and enter it here before then. - **Other providers.** Any mail server that accepts `XOAUTH2` tokens issued by a client-credentials grant works the same way; enter that provider's token endpoint and scope. (Google Workspace issues such tokens to service accounts through a signed JWT instead, which Runway does not do; use an app password or an SMTP relay there.) - **Instead of OAuth2**, Microsoft 365 also accepts mail without any sign-in through an **inbound connector** that trusts the server's fixed public IP address (port 25, Authentication off in Runway). That is set up entirely in Exchange Online. Leaving a field blank restores its default (no catch-all site; the `application.yml` password strength; the node name from `runway.node.name` or the host name; no platform mail). The three compression switches are the exception: a tick box has no "default" state, so **the first save of this page stores all three**, and from then on they, not the shipped defaults, decide. A switch set in the server's `external/application.yml` still wins over the saved one, and the page then shows it locked with where it is set. To hand a switch back to the configuration, set it in `application.yml`, or delete it from `platform.yml` by hand. **What `external/platform.yml` holds.** The fields of this page are top-level keys: ```yaml defaultSiteId: acme # the catch-all site's id passwordStrength: HIGH # STANDARD | HIGH nodeName: web-1 compressionEnabled: true brotliEnabled: true gzipEnabled: true smtp: host: smtp.example.com port: 587 auth: true username: runway@example.com password: ENC(...) # encrypted with runway.security.secret-key from: runway@example.com starttls: true ssl: false authMethod: password # password | oauth2 oauthTokenUrl: https://login.microsoftonline.com//oauth2/v2.0/token # oauth2 only oauthClientId: 00000000-0000-0000-0000-000000000000 oauthClientSecret: ENC(...) oauthScope: https://outlook.office365.com/.default ``` The same file also keeps `settings:` (Server settings and the policy cards, §8.5), `siteQuotas:` (each site's bandwidth cap, §12), `siteStorageCeilings:` (each site's storage limit, §10), `embedHosts:` (§8.4) and `logLevels:` (the levels set on Activity → Logs → Log levels). **Editing platform.yml by hand.** The running server reads this file once and keeps it in memory, so a hand edit applies only **after a restart** — and a save of any console page that writes this file before that restart writes the old values back over your edit. Stop the service, edit, start it. An unknown `passwordStrength` is logged and ignored (the `application.yml` profile is used). **Clear template cache.** Below the settings form, **Clear template cache** empties the cache of parsed page and chrome templates on **the node that answers you**. You normally never need it: Runway keeps the cache on for speed, evicts exactly the right entries whenever a page or fragment is changed **through the console** or a site is deleted or restored, and re-reads a template whose file changed **outside** the console (edited on the server, copied in by a deployment script) on its next use — a cached parse counts only while its files are unchanged on disk (Operations §5.2). It stays as a backstop, e.g. for a file system whose timestamps cannot be trusted. (For **one** site, the site reload of §12.2 does the same for that site's templates only, and leaves every other site's cache warm.) It is harmless — each page re-reads its template on its next request, which costs a few milliseconds once — and is recorded in the activity log (`platform.template-cache-cleared`). In a cluster it clears only the node that served the click: open the console on each node and run it there. Restricted to the application superadmin or a wildcard admin. ### 8.2 About Runway **Settings → About Runway** (`/__app/about`) is a **read-only** view of the running platform — useful when diagnosing an install or filing a report. Unlike Platform settings it changes nothing and exposes no secret, so it is visible to **any** signed-in operator. It has four parts: - **Version & build** — the running version and, when the build carries it, the build timestamp. - **Effective configuration** — a curated table of the non-secret settings in force: whether TLS terminates here or upstream, the HTTP port, reverse-proxy trust, the password-hashing profile, whether secret encryption is configured, the data and backups directories, the backup schedule/retention/off-host mirror, and the message-reload interval. These come from `external/application.yml`; **a restart is needed to change them**. No secret value is ever shown — secret-adjacent state (e.g. the master secret key) appears only as *configured / not configured*. - **Runtime environment** — the node serving the request: active profiles, Java/JVM/OS, processors, heap, data-disk free/total, uptime, start time, PID, host name, time zone and locale — plus the versions of the bundled components (Spring Boot, Jetty, Thymeleaf, Jackson, and more). In a multi-node deployment these describe **whichever node answered you**. - **This request** — the request that loaded the page as Runway saw it: the connection it came from and whether that is a trusted proxy, the `X-Forwarded-For` list as received, the client address Runway used, and the scheme and host. It checks a reverse-proxy setup from the browser (§7). ### 8.3 Password recovery Both sign-in pages — the application login (`/app/login`) and each site's login (`/login`) — offer a **"Forgot your password?"** link that lets a user reset their own password by email, without an operator. The link appears **only when platform mail is configured** (§8.1) **and the emailed link has an address to point at** (below); until then, recovery is done manually (reset an application user from **§9**, a tenant-superadmin from **§10**, or a site sub-user from the site console). How it works: 1. The user clicks **Forgot your password?** and enters the **email address** of their account. Every account type can recover — application users, tenant-superadmins, and site sub-users — **provided it has a recovery email set** (captured when the account is created, and editable afterwards by an administrator or by the user on their own **Account** page — `/__app/account` or `/__admin/account`, where changing it asks for the current password; make sure operators and site managers set one). Five wrong current passwords in a row on the Account page, for the email or the password, sign that session out, even when they are sent all at once; each wrong one is journaled as `account.password-check-failed` with the client's IP (`ip=203.0.113.9`) and counts toward the network's sign-in lockout. 2. The platform emails a **single-use link that expires in one hour**. For security the page always shows the same *"if an account with that email exists…"* confirmation, whether or not any account matched (no account enumeration). 3. Opening the link lets the user choose a new password. Reset links are stored only as **hashes** (`external/recovery-tokens.yml`, an ephemeral file that is **not** part of any backup), are used once, and requesting a new link invalidates the previous one. **Isolation.** A link is scoped to its realm and site: an application link can never reset a tenant account, and a site's link works **only on that site's own host**. A tenant-superadmin who manages several sites has one password; recovering it from any of their sites resets that single account. **Where the emailed link points.** Never at the host name the request came in on: anyone can send a request that names any host (a made-up `Host`, or `X-Forwarded-Host` through a proxy that passes it on), and a reset mail with a link to that host would hand the sender the token. The address comes from what Runway was told: - **A site's sign-in:** the site's own address: its **base URL**, or else `https://` and its **first** host name, with no port. A site with no host name offers no recovery, and nor does one whose first host is `localhost` (or `127.0.0.1`, `::1`) and that has no base URL: that is what the setup wizard gives the default site, and `https://localhost` reaches nobody who reads the mail. **A site served over plain `http` or on a port other than 443 needs its base URL set** (§10, *The site's base URL*), or its links point at `https://` and port 443. - **The application console:** with `runway.console.hosts` set (§8.6), the listed name the request came in on (as listed: case and a trailing dot in the request do not count), the request's scheme, and the port listed with the name if any, else the request's. The request's port is whatever the client wrote in its `Host` header (through a proxy too: `X-Forwarded-Host` carries it), so list the name with its port (`ops.example.com:443`) to fix it. Without `runway.console.hosts`, the **default site**'s address as above, on which the console also answers; without one, the console offers no recovery: set `runway.console.hosts`, or give the default site a public host name first, or a base URL. **Who decides the console's link.** Without `runway.console.hosts`, whoever sets the default site's hosts or base URL decides where the platform accounts' reset links go. So only a platform administrator (the application master or a wildcard administrator) can edit the default site's hosts, even where `MANAGE_SITE_HOSTS` is delegated, and a restore made from the site's own console keeps the site's hosts and base URL (§10). Setting `runway.console.hosts` takes the default site out of it altogether. The address a link points at is logged at INFO when one is requested (`a link, if mailed, points at …`), and a request that finds no address is logged at WARN with the reason. Beyond that there is nothing to configure: recovery is on once mail works. Verify it with **Send test email** (§8.1), then exercise a full round-trip from a login page and check that the link in the mail points at the address you expect. ### 8.4 Content-Security-Policy and the public-page nonce secret Every HTML response carries a Content-Security-Policy header (`runway.csp.*`, **§8**). Out of the box it is **report-only**: violations are logged by the in-kernel collector (`/__csp-report`, WARN level) and nothing is blocked. Review the log, then set `runway.csp.mode: enforce` in the external `application.yml` and restart. **The directives.** The policy is built once at startup from `runway.csp.*` (Settings → Server settings → Content-Security-Policy, or `application.yml`; every field applies after a restart, and SETTINGS-REFERENCE.md lists each default). Each directive key — `default-src`, `script-src`, `style-src`, `img-src`, `font-src`, `connect-src`, `base-uri`, `form-action`, `frame-ancestors` — is the source list written after the directive's name, **exactly as you type it** and not checked, so quote keywords the CSP way (`'self'`, `'none'`). Runway then adds to it: - `extra-hosts` (*Extra allowed hosts (all sites)* on Server settings: every site gets them) and the hosts plugins declare (reCAPTCHA's, for instance) — `extra-hosts` to `default-src`, `script-src`, `style-src`, `img-src`, `font-src`, `connect-src` and an added `frame-src`; plugin hosts to `script-src`, `connect-src` and `frame-src` only; - the response's nonce (and `'strict-dynamic'` where it applies) to `script-src`, which is therefore always sent; - on a site's public pages, the embed hosts that site switched on (below), each to its own directive. A **blank value in `external/application.yml`** (`runway.csp.default-src: ""`) leaves that directive out. For `style-src`, `img-src`, `font-src` and `connect-src` the browser then uses `default-src`; with `default-src` blank too, those are unrestricted. `base-uri`, `form-action` and `frame-ancestors` do **not** fall back to `default-src`: blank removes that protection (`frame-ancestors` is what stops other sites from framing yours). On the Server settings screen a blank field restores the default instead (a form field cannot say "nothing"); to omit a directive, set its key to `""` in `application.yml`, and the console then shows the field locked. `object-src 'none'` is always sent and has no key. - `runway.csp.report-uri` — where browsers send violation reports: Runway's own collector at `/__csp-report` by default, which writes them to the log at `WARN`. Any URL is used as given, so a report collector of your own works too. A blank value in `application.yml` (`runway.csp.report-uri: ""`) sends no reporting directive at all (no `report-uri`, `report-to` or `Reporting-Endpoints`), so `report` mode then only shows violations in each visitor's browser console. On the Server settings screen a blank field restores `/__csp-report`. - `runway.csp.upgrade-insecure-requests` — `true` adds `upgrade-insecure-requests`: the browser fetches every `http://` image, script or style of a page over `https://` instead. Turn it on only once every host your pages load from serves `https`, or those resources stop loading. **What `script-src` looks like.** The console and login/recovery pages get a fresh nonce per request plus `'strict-dynamic'`. **Public site pages** get `'nonce-' 'strict-dynamic'` too, where the nonce is **derived from the page version** (its ETag): every visitor and every cache sees the same value until the page changes, so shared caching (`public, max-age=…`) and `304` revalidation keep working exactly as before. The response edge adds that nonce to **the scripts the allowlist policy would have run** — a `` is never stamped, and a script on any other host is never stamped either, so both stay blocked in `enforce` mode exactly as they were before this release; a `nonce` attribute already written in the markup is overridden, so a copied nonce cannot unlock a script either. One exception: if you wrote `'unsafe-inline'` into `runway.csp.script-src` yourself (and no `'nonce-…'`, `'sha…-…'` or `'strict-dynamic'` token next to it), the old policy ran inline scripts, so inline scripts are stamped too and keep running. The stamp never runs a script the old policy blocked: a script on a host outside the policy stays unstamped either way. Add any of those three tokens and the exception ends: inline scripts are no longer stamped. `'self'` and the host allowlist stay in the header as the fallback for browsers that predate `'strict-dynamic'`. *Why the stamp follows the allowlist:* under `'strict-dynamic'` the browser runs a script only if it carries the nonce, so stamping everything would have turned scripts the allowlist blocked — markup injected into a page included — into scripts that run. *Why `'strict-dynamic'` at all:* a script the allowlist trusts may now load further scripts itself (`document.createElement('script')`) on any host — reCAPTCHA's loader fetching its own chunks is the case it exists for — while a modern browser no longer lets the allowlist alone authorize a parser-inserted script. So add a host to `extra-hosts` only if you also trust what its scripts load. Responses with no page version — error pages, plugin endpoints, the maintenance page — keep the plain `'self'` + host-allowlist policy. A page larger than the 8 MiB rewrite buffer is sent unrewritten with the allowlist policy and `Cache-Control: no-store`. So is a page whose rendered markup **already contains its own nonce** (in any spelling): markup copied the public value in — for example into an `