Voux

Environment Variables

Configure Voux using the .env file.


Overview

Voux is configured using environment variables defined in the .env file.

Some options can be changed later from /settings, while others are only read when the server starts.

NameDefaultWhat it does
PORT8787The web server port number.
PUBLIC_BASE_URLbased on requestLets you set a fixed site URL (like https://counter.yourdomain.com).
ADMIN_USERNAMEadminUsername for the first admin account.
ADMIN_PASSWORDchange-this-passwordPassword for the first admin account.
PRIVATE_MODEfalseIf true, only users can create new counters.
ADMIN_PAGE_SIZE5How many counters show on each page in the admin panel.
USERS_PAGE_SIZE4How many users show on each page in the users list.
SHOW_PUBLIC_GUIDEStrueControls if public guide cards are shown on the main page.
DEFAULT_ALLOWED_MODESunique,unlimitedComma-separated list of modes to allow (unique, unlimited) for counters. You can change it later in the dashboard.
COUNTER_CREATE_LIMIT5How many counters a single IP can create before hitting the one-minute cooldown.
COUNTER_CREATE_WINDOW_MS60000Window length (in ms) for the above limit. Leave it alone unless you need a different window.
INACTIVE_DAYS_THRESHOLD30Days with no hits before a counter shows an "Inactive" badge in the dashboard.
BRAND_NAMEVouxDefault display name (used in titles, hero text). You can override it in /settings.
HOME_TITLEVoux · Simple Free & Open Source Hit Counter...The homepage <title> tag value. Editable in settings.
UNLIMITED_THROTTLE_SECONDS0Seconds to wait before counting the same IP again in "Every visit" mode. 0 disables throttling. Applies only on first boot, once data/config.json exists, update the throttle from /settings or edit that file (config.json) (deleting it will regenerate from .env).
DEV_MODEdevelopmentUse development in .env to serve HTML/JS/CSS with no-store caching.

 

Edit on GitHub

Last updated on

On this page