webui

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package webui serves the web UI (web/, built into build/app) embedded in the Controller binary: static files with long-lived caching for hashed names, index.html for the app's own routes, and a strict Content Security Policy with a fresh nonce for every page load.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSP

func CSP(nonce string) string

CSP is the web UI's Content Security Policy: everything from this origin only, scripts and styles only from files or with this page's nonce, no plugins, no framing, and base URLs and form targets only on this origin.

func Handler

func Handler() http.Handler

Handler serves the embedded web UI.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL