OSH

Self-host the web admin

Run the OSH web admin console on your own web server: serve its files over HTTPS at an address of their own, allow that address on your gateway, and sign in with the OSH app as before.

Before you start

1. Before you start

The web admin is a set of static files: a page and its scripts, with no server program and no database. The browser talks straight to your gateway, so your data never passes through the server that hosts the page, nor through Open Layer. You need a web server that can serve files over HTTPS, an address for the console (for example https://admin.example.com) with a certificate your admins' browsers trust, and a gateway reachable over HTTPS.

The browser holds no key with authority. Every change (a role, a rule, a revoke) runs only after an admin approves that exact change on their phone in OSH - Signer.

Download and unpack the console

2. Download and unpack the console

On your web server, download web admin 0.16.1 and its checksum, check the file, and unpack it into the folder the web server will serve, for example /var/www/osh-web-admin.

curl -fL -O https://osh.openlay.com/downloads/web-admin/WebAdmin-0.16.1.tar.gz -O https://osh.openlay.com/downloads/web-admin/WebAdmin-0.16.1.sha256
sha256sum -c --ignore-missing WebAdmin-0.16.1.sha256

Must print OK. Anything else: download again, and do not use the file.

sudo mkdir -p /var/www/osh-web-admin && sudo tar xzf WebAdmin-0.16.1.tar.gz -C /var/www/osh-web-admin --strip-components=1

The folder then holds index.html, favicon.ico, osh-mark.png and assets/.

On Windows, use https://osh.openlay.com/downloads/web-admin/WebAdmin-0.16.1.zip instead; its checksum is in the same .sha256 file.

Serve the files over HTTPS

3. Serve the files over HTTPS

Serve that folder at the root of the console's address. A minimal Caddy site looks like this; Caddy gets and renews the certificate for you.

/etc/caddy/Caddyfile
admin.example.com {	root * /var/www/osh-web-admin	file_server}

With nginx: a server block that listens on 443 with your certificate, sets root to the folder and index to index.html.

Serve it at the root of the address (https://admin.example.com/), not under a path such as /osh/: the page loads its files from /assets/.

HTTPS is required. The browser only creates the console's sign-in key on a secure page; over plain http the console cannot sign in.

Give the console an address of its own and host nothing else there. Any other page on the same address could use an admin's open session.

Allow the console's address on your gateway

4. Allow the console's address on your gateway

The gateway answers the console only from addresses it allows. Add the console's address to the [webadmin] section of the gateway config, then restart the gateway.

sudo systemctl restart pam-zta-gateway

Restart after any change to the config. Approvals still waiting on a phone are dropped; ask for them again.

/etc/pam-zta/gateway.toml
[webadmin]enabled         = trueallowed_origins = ["https://admin.example.com"]

Write the address exactly as the browser shows it: https://, the host name, the port only if it is not 443, and no slash at the end.

On a new gateway you can pass it to the install script instead: --webadmin https://admin.example.com.

allowed_origins = ["*"], the install default, also works: it accepts a console at any address. Naming yours is stricter.

The gateway also needs an HTTPS address. A console on HTTPS cannot call a gateway on plain http: the browser blocks it.

Sign in

6. Sign in

Open the console's address. Under Gateway address type the address you installed the gateway at, press Show sign-in code and scan the code with OSH - Signer. The console remembers the gateway address on this browser.

Admins who used the console at another address sign in again here: each address keeps its own sign-in key and remembered gateway.

Keep it up to date

7. Keep it up to date

A self-hosted console does not update itself. When this page lists a newer version, download it and unpack it over the same folder with the commands above.

The version is shown in the corner of the console. Quote it when you ask for help.

If the console says Failed to fetch

8. If the console says Failed to fetch

The browser hides why a call failed, so the console can only say Failed to fetch. Check these, in this order:

sudo journalctl -u pam-zta-gateway | grep cors_origin_rejected

Shows the address of a console the gateway refused. Add exactly that address to allowed_origins.

No [webadmin] section, or enabled = false: the gateway refuses every console. Add the section from the step above.

The address is not in allowed_origins, or is written differently (http instead of https, a slash at the end, a missing port).

The gateway is on plain http, or a browser does not trust its certificate, for example one from an internal CA that is not installed on that computer. Open the gateway's address in the same browser: it must load without a warning.

Keep the web server safe

9. Keep the web server safe

Whoever controls the web server controls the page admins load. They still cannot change anything without a phone approval, but they could read what admins see in the console. Keep it patched, and limit who can log in to it and who can write to the folder.

Keep the console on HTTPS with a valid certificate, on an address used for nothing else.

You can keep the console inside your network only: it needs to reach your gateway, not the internet.

© 2026 Open layer technologies L.L.C S.O.C · v0.1.0
Need help? ad@openlay.com