Documentation
¶
Overview ¶
Package webui serves the Panelarr web app next to the API, following the web app's embedding contract: files at the root, a single-page fallback to index.html (never for API, feed, asset or probe paths), long caching for content-hashed assets, and the app's security headers.
Index ¶
Constants ¶
View Source
const (
ContentSecurityPolicy = "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; " +
"img-src 'self' data: blob:; font-src 'self'; connect-src 'self'; manifest-src 'self'; " +
"worker-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'"
)
Security headers sent with every app response. They must match the web app's csp.config.mjs: its tests fail on any violation of this policy.
Variables ¶
This section is empty.
Functions ¶
func Files ¶
Files returns the app's files: dir when set (a local build, for development), else the build embedded in the binary.
func IsPlaceholder ¶
IsPlaceholder reports whether files are the placeholder page, not a web app build.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.