Procy Docs
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeProcy home API GitHub Sign in

Web UI

Install the Procy web UI on your own server. This page is for self-hosting only: on procy.sh the UI is already there.

The UI is a bundle of static HTML, JavaScript and assets, released separately from the server. rportd serves it from its doc_root on the API address, so the UI and the API share one URL and need no other web server. Like the server, it is open source under the AGPL-3.0: the code is in the procy-ui repository.

Install it

  1. In the [api] section of rportd.conf, listen on an address your browser can reach and set the doc root:

    [api]
      address = "0.0.0.0:3000"
      doc_root = "/var/lib/rport/docroot"
    
  2. Download the latest procy-ui-<version>.zip from the UI releases and unpack it into the doc root:

    sudo mkdir -p /var/lib/rport/docroot
    cd /var/lib/rport/docroot
    UI_TAG=$(curl -fsSL https://api.github.com/repos/pohcee/procy-ui/releases/latest \
      | sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')
    sudo curl -fsSL -o procy-ui.zip \
      "https://github.com/pohcee/procy-ui/releases/download/${UI_TAG}/procy-ui-${UI_TAG#v}.zip"
    sudo unzip -qq procy-ui.zip && sudo rm -f procy-ui.zip
    cd ~
    sudo chown -R rport:rport /var/lib/rport/docroot
    
  3. Restart rportd, open the API URL in a browser and log in with an API user.

The server usually faces the internet. Never serve the API and the UI over plain HTTP: turn on HTTPS first.

Update it

Unpack a newer release over the doc root the same way; no restart is needed. Remove the old files first if you want a clean copy. Keep the UI and the server on matching releases: a new UI may call API routes an older server doesn’t have.

What shows up

The UI asks the server what it supports (GET /api/v1/status) and shows only those pages. A standalone server on SQLite shows devices, tunnels, commands, scripts, schedules, the library, the vault, users and the audit log. A server on Postgres can also show organizations, members and invitations, usage, billing and the operator console, depending on what you turn on. With Sign in with Google the login page shows a Google button next to the password form.

Analytics (off by default)

The UI sends nothing to third parties unless you turn it on. To measure visits to the public pages with your own Google Tag Manager container, set its ID in the [api] section:

[api]
  gtm_container_id = "GTM-XXXXXXX"

With it set, and only then:

  • Tag Manager loads on the public pages only, while nobody is signed in: the home page, the sign-in page (and its Google return page) and the signup pages. Signed-in pages never load it. Leaving a page that loaded it for a signed-in page (signing in, for example) is a full page load, so nothing is sent from the app.
  • Page views carry the page’s path only, never its query string or fragment, where sign-in codes and email-link tokens travel. A page opened with a query string or a fragment, such as an email link, doesn’t load Tag Manager at all.
  • Consent Mode v2 defaults deny all storage (ad_storage, ad_user_data, ad_personalization, analytics_storage) before the container loads. A banner asks for analytics cookies: Accept grants analytics_storage only, ads consent stays denied. The browser keeps the choice for 12 months, and Cookie settings in the page footer changes it.
  • rportd sends no Content-Security-Policy, so there is none to change. If your reverse proxy adds one, allow https://www.googletagmanager.com (script, img, connect) and https://*.google-analytics.com and https://*.analytics.google.com (connect, img) on the UI’s pages.

The tags themselves, such as a Google Analytics 4 tag that requires analytics_storage, are set up in the Tag Manager container. On every public page view, the first one included, the UI pushes a procy_page_view event with page_path, page_location and page_title to dataLayer.