Settings and maintenance
This page is for administrators. It presents the application Settings (defaults, security, SMTP email, logs, Packer, branding), then maintenance: how versions work, how to update an installation, backups, the startup screen and the configuration of this documentation.
Opening and saving settings
- In the side menu, click Settings (
settingspermission). - Choose a section in the list on the left (a drop-down menu on a phone), or type a few words in Search settings.
- Change the values, then click Save changes in the bar that appears at the bottom of the page.
Until you save, this bar counts the changes and offers Cancel. Changes survive switching from one section to another. If you leave the settings, PxVault asks for confirmation. Each setting is described in detail, with its default value and limits, in the Settings reference.
Tip: settings are stored in the database. They are therefore shared by all backend servers if you run several of them.
Settings sections
| Group | Sections |
|---|---|
| Infrastructure | Virtual Machines (sizes, storage, network bridge, tags, guest accounts, VMID), Naming, Templates and Packer. |
| Network | IPAM (default pool, reconciliation, network checks), VPC. See Network and IPAM and VPC and firewall. |
| Security & access | Security (sessions, lockout, passwords, certificates, allowed address list, agent key), Two-factor authentication, My Account. |
| Integrations | Notifications (webhook, email), External IPAM and DNS (phpIPAM, PowerDNS), FinOps & Pricing. |
| Appearance | Branding. |
| System | Logs and retention, Sync and performance (intervals, parallelism, background tasks, timeouts). |
Configuring sign-in security
The Security section includes in particular (full details in the Settings reference):
| Setting | Effect |
|---|---|
| Session Cookie TTL | Beyond this, the user must sign in again. |
| API Token Expiration | Default lifetime of a new API key: prefilled on the API Keys page and applied when an API call does not specify expiresInDays. Never = no expiration. Existing keys do not change. See Users and access. |
| Max Login Failures / Lockout Duration | Number of failed attempts tolerated, then duration of the lockout. |
| Email OTP Validity | How long a 2FA code sent by email stays valid. |
| Reset Link Validity | How long the "Forgot password" link stays valid. |
| Verify SSL by Default | New hypervisors verify the Proxmox TLS certificate. See Adding a hypervisor. |
| IP Allowlist (Network Restrictions) | One IP address or CIDR block per line: only these addresses can call the API. Empty = all addresses are allowed. |
| Step-up 2FA for critical actions | List of sensitive actions that ask for a 2FA code again. |
| Minimum VM Password Length / Require Complex VM Passwords | Rules imposed on a password chosen for a VM or a container: password change from the machine's page, and password provided at creation through the API. 8 characters minimum in all cases; "complex" = uppercase, lowercase, digit and symbol. Passwords generated by PxVault and those of user accounts (always 10 characters minimum) are not concerned. |
Warning: with an IP allowlist, your own address must be in it: otherwise saving is refused with the message "This IP allowlist would lock you out". An entry that is neither an IP address nor a CIDR block is also refused, and the message names it; spaces and duplicates are removed on save. Behind a reverse proxy, the address seen by PxVault depends on the
TRUST_PROXYvariable (see Operations). If you lose access, see Troubleshooting.
Important: only the application owner (the first account, created at installation, unless ownership was transferred) can change the list of actions protected by step-up 2FA. Saving asks for their 2FA code.
Configuring email sending (SMTP)
An SMTP server is required for email 2FA codes, password reset by email and email notifications.
- Open Settings > Notifications, Email block.
- Fill in SMTP Host, SMTP Port (often
587), Use SSL/TLS depending on your server, SMTP Username, SMTP Password and Sender Address (From). - To receive notifications, enable Enable Email Notifications, enter the Recipients (Comma-separated) and check the events you want.
- Click Send a test, then Save changes.
Tip: 2FA codes and reset emails are sent as soon as the SMTP host is filled in, even if email notifications are disabled.
Good to know: an SMTP server that does not respond makes sending fail within about fifteen seconds at most (10 s to connect and receive the server greeting, 15 s of inactivity). The test then shows the error; a notification is retried later.
Warning: links sent by email (password reset) are built from the backend's
APP_URLenvironment variable. As long as it is not set, these features return anapp_url_not_configurederror.
The Webhook block works the same way: a Webhook URL that receives a JSON POST for the chosen Webhook events, a Webhook timeout, and a Send a test button.
Choosing where logs are written
In Settings > Logs and retention:
- Log directory:
/var/log/pxvaultby default. A relative path starts from the project root. The directory must be writable by the backend process, and its name must be dedicated (last folder namedlogs, or containingpxvault), because PxVault lists and purges its content. - Log file retention: 7 days by default,
0= indefinitely. It only concerns the instance'sapp-AAAA-MM-JJ.logfiles.
The History kept in the database block sets what the Logs page keeps for all instances:
| Setting | Default | Purpose |
|---|---|---|
| Audit trail | 180 days | Older actions are deleted automatically. 0 = keep indefinitely. |
| Warnings and errors | 30 days | Same rule for the Warnings and errors tab. 0 = keep indefinitely. |
| Warnings and errors: maximum entries | 50,000 | Only the most recent entries are kept. 0 = no cap. |
The retention task rereads these values on each run (every 6 hours by default): a change applies without a restart. If the operator has set the matching environment variable (RETENTION_ACTION_LOG_DAYS, RETENTION_APP_LOG_DAYS, RETENTION_APP_LOG_MAX_ROWS), that variable applies: the field is then grayed out, shows the variable's name and says "Set by environment variable …". To delete specific entries right away, use the Purge... button on the Logs page (see Supervision and alerts).
Tip: in a container, the
LOG_TO_STDOUT_ONLY=truevariable sends logs to standard output only, with no file at all. See Troubleshooting to find the logs.
Packer settings
Template builds are configured in Settings > Templates and Packer: Parallel builds per hypervisor (2 by default), Build timeout (60 min), Attempts per build, Pause between attempts, Download timeout (180 s) and Template storage (local).
How builds work is explained in Templates and images.
Network checks (checking the network of new VMs)
In Settings → IPAM, the Network checks block configures the check run from inside each new VM (see Creating machines):
| Setting | Default | Purpose |
|---|---|---|
| Check the network after creation | enabled | Turn it off to stop running this check. It only concerns VMs (KVM) and requires the QEMU guest agent in the template. |
| DNS test hostname | empty | A name your DNS servers can resolve (it can be internal, for example intranet.local). Empty = no DNS test: this is the right choice on an isolated site. Only a DNS name is accepted. |
| Guest agent wait | 180 s | How long to wait for the guest agent's answer before showing "Not verified" (between 10 and 900 seconds). A first Windows boot can take several minutes. |
None of these checks requires Internet access, and none makes a creation fail.
Customizing the branding (white label)
In Settings > Branding:
| Field | Effect |
|---|---|
| Application name | Replaces "PxVault" in the menu and the page titles. |
| Logo URL | Path or URL of the logo. The Upload button sends an image from your computer. |
| Favicon URL | The browser tab icon. |
| Primary Color | Buttons and interactive elements. |
| Global Background Color | Background of the application and the menu. |
| Secondary / Accent Color | Cards and secondary menus. |
| Text Color | All text. Choose a dark color if the background is light. |
The Custom Links (Sidebar) card adds links to your internal tools (support portal, ITSM, etc.) in the side menu: Add link, then Label, URL and Open in a new tab. Reset to default restores the original appearance (remember to save).
Understanding version numbers
The installed version number is shown at the top of the side menu (for example v2.1.0) and in the Swagger documentation (/docs).
Versions are automatic and follow semantic versioning MAJEUR.MINEUR.CORRECTIF (major.minor.patch):
- Each code change is described by a standardized commit message (Conventional Commits).
- After each merge into the main branch and once all tests pass (green CI), a tool computes the new version:
- a breaking change to the REST API bumps the MAJOR;
- a new feature (
feat) bumps the MINOR; - a fix (
fix,perf) bumps the PATCH; - anything else on its own (documentation, tests, tooling) does not produce a version.
- The tool creates a
vX.Y.Ztag, publishes a release (GitHub or GitLab, depending on where the code is hosted) and builds the Docker images for that version.
On GitLab, this requires a one-time setting: the RELEASE_TOKEN CI/CD variable (see Operations).
The details of each version are in the release notes (CHANGELOG.md file), written to be read by humans. Read them before each update, especially the breaking changes section.
Important: a MAJOR version signals a break in the API contract. If third-party applications (ERP, portal, scripts) call PxVault, check them before updating.
Updating PxVault
The complete procedure (Kubernetes, rollback, failed migrations) is in the Operations guide. In short:
- Back up the database right before (see below). It is what makes a rollback possible.
- Read the release notes of all versions between yours and the target.
- Deploy the new version with the same number for all three images (backend, migrate, frontend). Database migrations run before the new code.
- Check:
/api/health/readyreturns 200, a sign-in works, a VM console opens, the logs show no repeated errors.
With Docker Compose:
# after the backup
git pull # or PXVAULT_TAG=<version> in .env with published images
docker compose build # (with registry images: docker compose pull)
docker compose up -d # mariadb → migrate → backend → frontend → proxy
docker compose ps # migrate "exited (0)", the rest "healthy"
During the restart, users see the waiting screen described below, then get back to their page automatically.
Backing up and restoring
- The
scripts/backup-mariadb.shscript produces a consistent MariaDB dump, without stopping the application, compressed, with a.sha256checksum and automatic rotation. scripts/restore-mariadb.shrestores a dump (backends stopped).- Schedule the backup (Kubernetes CronJob or crontab) and copy it off site.
- Test a restore every month: a backup that has never been restored is not a backup.
Warning: secrets (Proxmox tokens, 2FA secrets, VM passwords, etc.) are encrypted in the database with the
ENCRYPTION_KEYkey. Without this key, a backup is useless for these secrets. Keep it in a vault, in two places, never next to the backups.
Everything is detailed in Operations (backups, escrow and key rotation sections).
Configuration checks at startup
At startup, the backend checks its configuration and prints a diagnostic in its logs (pm2 logs, docker compose logs backend, kubectl logs).
It refuses to start as long as essentials are missing, indicating the command or line to add:
| Blocking problem | Fix |
|---|---|
No backend/.env file and no environment variables |
cp backend/.env.example backend/.env, then complete it |
ENCRYPTION_KEY missing or too weak |
Generate it: openssl rand -hex 32 |
APP_JWT_SECRET missing (MariaDB or production) |
openssl rand -base64 48 |
APP_URL missing or invalid in production |
The public address of PxVault, for example APP_URL=https://pxvault.example.com |
| SQLite database not initialized, Prisma clients not generated | pnpm db:migrate:deploy, pnpm db:generate:all |
No ISO creation tool (genisoimage, xorriso, etc.) |
apt-get install -y genisoimage |
REQUIRE_AUTH=false outside development |
Remove this variable |
It starts but warns about anything that leaves a feature broken or weakened: no agent release key (node updates impossible), unsigned agent, APP_URL missing outside production, cookies without the Secure attribute, weak encryption key deliberately accepted, JWT secret rotation in progress. These warnings are also shown in the application, at the top of each page, to users who can read the settings (Incomplete configuration: n point(s) to fix), with a link to the fix. GET /api/settings/config-warnings returns the same list for external monitoring.
The "is starting…" screen (waiting screen)
Right after a start or restart, the interface responds before the backend is ready. Instead of showing a broken page, PxVault shows a waiting screen: PxVault is starting… (with your brand name), and the message "This page will refresh by itself as soon as it is ready.".
- The screen polls
/api/health/readyevery 2 seconds and takes you back to the requested page as soon as the backend responds. - A Waiting for … s counter is shown. After 90 seconds, a message suggests checking the server logs, with a Retry button.
To disable it (for example if you prefer to see raw errors), set PXVAULT_STARTUP_SCREEN=off in the frontend environment, then restart it.
Tip: if this screen never goes away, the backend is not starting or cannot reach its database. See Troubleshooting.
Configuring this documentation
This built-in documentation (/documentation) is built from the repository's Markdown files.
- The table of contents is described in
docs/manifest.json: a list of categories (id,title,pages), each page having aslug(lowercase and hyphens, unique), afile(path from the repository root) and, if needed,keywordsfor search. The order in the file is the display order. A page's title is its first#heading. - After any change to the manifest or a listed page, regenerate the documentation bundle, then commit the result:
pnpm run docs:build
- A CI check refuses an outdated bundle: if you forget this command, CI fails with the message "The documentation bundle is out of date".
- To disable the documentation (menu entry, results in global search and
/documentationpages), setPXVAULT_DOCS=offin the frontend environment. The variable is read on every request: no rebuild is needed.
Tip: to add your own internal procedures, create a Markdown file in
docs/, add it to a category ofdocs/manifest.json, then runpnpm run docs:build.