Beantragt
Operation

Separate hosts

The citizen portal stays public, the casework app stays on the internal network, both from the same UI image. Covers services, network and sign-in.

The Compose package starts one UI service that serves the citizen portal and casework together. In production both can be split across separate hosts: the citizen portal is publicly reachable, casework only on the internal network.

Setting up the services

Two services are started from the same UI image. BEANTRAGT_UI_MODE in the startup environment of each service sets the run mode. The startup log records the mode in use as ui_mode.

ServiceRun modeFunctional check
Public citizen portalcitizen/musterstadt/start and a published form open. The status lookup is available at /musterstadt/status. A direct request for a staff page returns HTTP 404.
Internal caseworkallAfter signing in with an authorised account, the application list opens, for Musterstadt at /musterstadt/admin/applications.

Without the variable, the service starts in citizen. An empty value, whitespace or a different spelling stops the startup with exit code 1. The internal service therefore keeps all permanently in its configuration.

The build scope determines which features the image contains. NUXT_BUILD_SCOPE=citizen builds the citizen interface only, NUXT_BUILD_SCOPE=casework includes the open casework. The Dockerfile of the open interface sets casework. The run mode all opens the areas present in the image to the regular access checks. Roles and memberships remain decisive for every request.

Network and backend

Drupal and the database are on the internal network. Both UI services reach Drupal over the internal network. The public reverse proxy forwards requests exclusively to the citizen portal. TLS, trusted hosts and proxy addresses follow Installation.

Sign-in

On the citizen host, citizens sign in with a personal address. Staff and service accounts are refused there at sign-in. Casework signs in on the internal host with the address of the staff account. The flow is described under Sign-in.

Delivery and cache

HTML pages and the matching Nuxt page data pass through the UI service of the respective host. Shared HTML caches are separated by host, so that a cached staff page is served only on the internal host.