Webserver
Poller has a built-in and disabled by default web server. The web server provides some very basic information about your UniFi environment, devices and clients. At the time of this writing it is only an API, but a simple human interface (read-only) is planned.
note
The web server was added in UnPoller v2.0.2.
#
UsageYou must enable the web server if you wish to use it. To enable the web server without authentication this is all you need to do:
or, with an environment variable:
#
AuthenticationBy default there is no authentication.
To enable authentication, add a username and password. Like this (captain
is the username):
Using an env variable (captain
is the username):
#
Making a Password HashUse unpoller
to make a web server account password hash. Like this:
Using Docker:
#
AdvancedThese are the advanced settings and their default values.
The default HTML path is installed by any package or the Official Golift Docker image.
This usually does not need to be changed. Exceptions are BSD and macOS systems.
The HTML path on these OSes is /usr/local/lib/unpoller/web
, and you need to set it.
An SSL listener may be enabled instead of standard HTTP by providing an SSL Cert File and Key File paths.
The max_events
setting controls memory usage. For small or home sites you can safely set this to 1000 or higher.
This setting dictates how many logs are kept in memory.
The setting is a global setting that applies to all log queues.
There are several log queues per plugin.