Webserver
The webserver component enables Viserons front-end interface.
It also provides the websocket and REST API.
The user interface can be reached by default on port 8888 inside the container.
note
webserver is always enabled, even if not present in the config.yaml
Public Image URLs
The webserver can generate public URLs for images (e.g., for notifications) that are accessible without authentication. These URLs can be configured with:
- Expiration time (
public_url_expiry_hours): How long the URL remains valid (default: 24 hours, max: 31 days) - Download limit (
public_url_max_downloads): How many times the image can be downloaded before automatic deletion0(default): Unlimited downloads - only time expiration applies1: Single-use URL - perfect for one-time notifications2+: Limited sharing - image deleted after N downloads
Use cases:
- Single-use notifications: Set
public_url_max_downloads: 1for images that should only be viewed once - Limited sharing: Set a specific number to allow multiple views but prevent unlimited distribution
- Temporary unlimited access: Set
public_url_max_downloads: 0with an expiry time for time-limited but unlimited views
Configuration
Configuration example
webservermap required
Webserver configuration.
Troubleshooting
To enable debug logging for
webserver, add the following to your config.yaml/config/config.yaml
logger:
logs:
viseron.components.webserver: debug