[{"data":1,"prerenderedAt":203},["ShallowReactive",2],{"navigation-en":3,"/en/operation/separate-hosts-en":46,"/en/operation/separate-hosts-en-surround":198},[4,8,12,38,42],{"title":5,"path":6,"stem":7},"Overview","/en","en/0.index",{"title":9,"path":10,"stem":11},"Quick start","/en/getting-started/self-hosting","en/1.getting-started/1.self-hosting",{"title":13,"path":14,"stem":15,"children":16},"Operation","/en/operation","en/2.operation/0.index",[17,18,22,26,30,34],{"title":13,"path":14,"stem":15},{"title":19,"path":20,"stem":21},"Installation","/en/operation/installation","en/2.operation/1.installation",{"title":23,"path":24,"stem":25},"Email delivery","/en/operation/mail","en/2.operation/2.mail",{"title":27,"path":28,"stem":29},"Documents","/en/operation/documents","en/2.operation/3.documents",{"title":31,"path":32,"stem":33},"Accounts and roles","/en/operation/accounts-and-roles","en/2.operation/4.accounts-and-roles",{"title":35,"path":36,"stem":37},"Separate hosts","/en/operation/separate-hosts","en/2.operation/5.separate-hosts",{"title":39,"path":40,"stem":41},"Sign-in","/en/sign-in","en/3.sign-in",{"title":43,"path":44,"stem":45},"Backend API v1","/en/api","en/4.api",{"id":47,"title":35,"body":48,"description":192,"extension":193,"links":194,"meta":195,"navigation":194,"path":36,"seo":196,"stem":37,"__hash__":197},"en/en/2.operation/5.separate-hosts.md",{"type":49,"value":50,"toc":183},"minimark",[51,55,60,72,131,140,158,162,168,171,176,180],[52,53,54],"p",{},"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.",[56,57,59],"h2",{"id":58},"setting-up-the-services","Setting up the services",[52,61,62,63,67,68,71],{},"Two services are started from the same UI image. ",[64,65,66],"code",{},"BEANTRAGT_UI_MODE"," in the startup environment of each service sets the run mode. The startup log records the mode in use as ",[64,69,70],{},"ui_mode",".",[73,74,75,91],"table",{},[76,77,78],"thead",{},[79,80,81,85,88],"tr",{},[82,83,84],"th",{},"Service",[82,86,87],{},"Run mode",[82,89,90],{},"Functional check",[92,93,94,115],"tbody",{},[79,95,96,100,105],{},[97,98,99],"td",{},"Public citizen portal",[97,101,102],{},[64,103,104],{},"citizen",[97,106,107,110,111,114],{},[64,108,109],{},"/musterstadt/start"," and a published form open. The status lookup is available at ",[64,112,113],{},"/musterstadt/status",". A direct request for a staff page returns HTTP 404.",[79,116,117,120,125],{},[97,118,119],{},"Internal casework",[97,121,122],{},[64,123,124],{},"all",[97,126,127,128,71],{},"After signing in with an authorised account, the application list opens, for Musterstadt at ",[64,129,130],{},"/musterstadt/admin/applications",[52,132,133,134,136,137,139],{},"Without the variable, the service starts in ",[64,135,104],{},". An empty value, whitespace or a different spelling stops the startup with exit code 1. The internal service therefore keeps ",[64,138,124],{}," permanently in its configuration.",[52,141,142,143,146,147,150,151,154,155,157],{},"The build scope determines which features the image contains. ",[64,144,145],{},"NUXT_BUILD_SCOPE=citizen"," builds the citizen interface only, ",[64,148,149],{},"NUXT_BUILD_SCOPE=casework"," includes the open casework. The Dockerfile of the open interface sets ",[64,152,153],{},"casework",". The run mode ",[64,156,124],{}," opens the areas present in the image to the regular access checks. Roles and memberships remain decisive for every request.",[56,159,161],{"id":160},"network-and-backend","Network and backend",[52,163,164,165,71],{},"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 ",[166,167,19],"a",{"href":20},[56,169,39],{"id":170},"sign-in",[52,172,173,174,71],{},"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 ",[166,175,39],{"href":40},[56,177,179],{"id":178},"delivery-and-cache","Delivery and cache",[52,181,182],{},"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.",{"title":184,"searchDepth":185,"depth":186,"links":187},"",3,2,[188,189,190,191],{"id":58,"depth":186,"text":59},{"id":160,"depth":186,"text":161},{"id":170,"depth":186,"text":39},{"id":178,"depth":186,"text":179},"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.","md",null,{},{"title":35,"description":192},"z2pxN770wywOuPXHHdCwGy5Sj2XT0x0bN3GUCH4nfxE",[199,201],{"title":31,"path":32,"stem":33,"description":200,"children":-1},"How staff accounts get access: membership in a municipality or department, roles for casework and form administration (Fachadministration), invitations.",{"title":39,"path":40,"stem":41,"description":202,"children":-1},"Sign-in with a one-time code by email in the citizen portal and in casework.",1795601412415]