Pglet Server installation
Pglet Server can be run as a standalone executable or a Docker container.
#
Standalone executablePglet Server is available for the following platforms:
- Linux: x64, ARM and ARM64
- macOS: x64 and ARM64 (Apple Silicon M1)
- Windows: x64
The latest Pglet Server executable can be downloaded from Pglet releases page.
To start Pglet Server:
#
ConfigurationBy default Pglet Server is listening on port 5000, but this and other server settings can be configured via environment variables or in configuration file.
config.yml
file#
Pglet configuration file must be named config.yml
and be in YAML format.
Configuration file location on Linux/macOS:
/etc/pglet/config.yml
(system-wide)$HOME/.config/pglet/config.yml
(user-specific)./config.yml
(current directory)
Configuration file location on Windows:
%ProgramData%\pglet\config.yml
(system-wide)%UserProfile%\.pglet\config.yml
(user-specific).\config.yml
(current directory)
Minimal configuration for self-hosted Pglet Server:
The rest of supported extra settings in the configuration file:
#
Environment variablesPGLET_SERVER_PORT
: 5000PGLET_FORCE_SSL
: falsePGLET_ALLOW_REMOTE_HOST_CLIENTS
: falsePGLET_PAGE_LIFETIME_MINUTES
: 1440PGLET_APP_LIFETIME_MINUTES
: 60PGLET_CHECK_PAGE_IP
: truePGLET_RESERVED_ACCOUNT_NAMES
: account1 account2 ...PGLET_RESERVED_PAGE_NAMES
: account/page account/pagePGLET_LIMIT_PAGES_PER_HOUR
: 0PGLET_LIMIT_SESSIONS_PER_HOUR
: 0PGLET_LIMIT_SESSION_SIZE_BYTES
: 0PGLET_REDIS_ADDR
:PGLET_REDIS_PASSWORD
:PGLET_REDIS_MAX_IDLE
: 5PGLET_REDIS_MAX_ACTIVE
: 10
#
Docker containerPglet Server can be run as a Docker container by using pglet/server
image.
By default, Pglet container is listening on port 8080 and allows remote host clients. The easiest way to control Pglet settings is via environment variables.
For example, to run Pglet Server on port 80 and map it to the host: