Files
pve-panel/example.env
2026-10-30 20:43:29 +01:00

136 lines
5.6 KiB
Bash

# Using the ready-made image (deploy/docker-compose*.yml). Optional: the default
# is ghcr.io/sebastianflint/pve-panel:latest; set a release to pin it, e.g. ghcr.io/sebastianflint/pve-panel:1.2.0
# PANEL_IMAGE=ghcr.io/sebastianflint/pve-panel:latest
# Passkeys (fingerprint, face, device PIN, security key). They need a domain name
# over https (or localhost); set PANEL_PUBLIC_URL / ADMIN_PUBLIC_URL for your domains.
PASSKEYS_ENABLED=true
# Show the panel version to signed-in customers (sidebar and Account page).
# Only the number; commit, build date and update status stay in the admin interface.
SHOW_VERSION_TO_CUSTOMERS=true
# Windows updates (switched on/off in the admin interface): how often running
# update runs are checked in the background, in seconds.
WINUPDATE_POLL_SECONDS=60
# Server expiry (configured per customer/server in the admin interface): how often
# the panel checks expiry dates, in seconds. 0 = never automatically ("Check now" only).
EXPIRY_CHECK_SECONDS=300
# Setup check (admin interface, Setup check): runs automatically every N hours and
# emails administrators when it finds a NEW problem. 0 = only when you run it.
SETUP_CHECK_HOURS=24
# Backups (switched on and configured in the admin interface, Settings, Backups):
# how many backups/restores may run at the same time; others wait in a queue.
BACKUP_PARALLEL=2
# Update check: the admin interface asks GitHub (at most every 6 hours) whether a
# newer release exists. Set to false to never contact GitHub.
UPDATE_CHECK=true
# First administrator, created on first start only if no accounts exist yet
# (for setups without a terminal, e.g. a NAS). Remove the password afterwards.
INITIAL_ADMIN_EMAIL=
INITIAL_ADMIN_PASSWORD=
INITIAL_ADMIN_REQUIRE_2FA=false
# Product name shown on the sign-in pages, in the sidebar and in page titles
PANEL_NAME=PVE Panel
# Folder with own OS icons (os-windows.svg, os-linux.png …); default data/branding
BRANDING_DIR=
# ---- Sign-in methods (see the documentation, "Single sign-on (OIDC)") ----
# Password sign-in per portal. Turning one off requires OIDC for that portal.
PASSWORD_LOGIN_CUSTOMER=true
PASSWORD_LOGIN_ADMIN=true
OIDC_ENABLED=false
OIDC_ISSUER=https://login.example.com/realms/example
OIDC_CLIENT_ID=
OIDC_CLIENT_SECRET=
# Which portals show the single sign-on button
OIDC_PORTALS=customer,admin
OIDC_BUTTON_LABEL=Sign in with single sign-on
OIDC_SCOPES=openid email profile
# The addresses browsers use; callbacks are <url>/api/auth/oidc/callback
PANEL_PUBLIC_URL=https://panel.example.com
ADMIN_PUBLIC_URL=http://localhost:3001
# Only these email domains may link or be created (empty = any)
OIDC_ALLOWED_DOMAINS=
# First link by email only when the provider says it's verified
OIDC_REQUIRE_VERIFIED_EMAIL=true
# Create unknown users as customers (no rights until an admin grants them)
OIDC_AUTO_CREATE=false
# Skip the panel's own 2FA when the provider confirms multi-factor sign-in (amr)
OIDC_TRUST_IDP_MFA=true
# Pushed Authorization Requests: auto (when offered), always, never
OIDC_USE_PAR=auto
# Docker with automatic HTTPS (docker compose --profile https): the public DNS name
PANEL_DOMAIN=panel.example.com
# Customer panel
PORT=3000
HOST=0.0.0.0
# Admin interface: its own server and port. Default is local-only; reach it
# through an SSH tunnel or VPN. Only set ADMIN_HOST=0.0.0.0 behind a firewall.
ADMIN_PORT=3001
ADMIN_HOST=127.0.0.1
# Long random string: node -e "console.log(require('crypto').randomBytes(48).toString('hex'))"
JWT_SECRET=change-me
# Set to false only for local development over plain http
COOKIE_SECURE=true
DB_PATH=./data/panel.db
# Proxmox VE
PVE_URL=https://pve.example.com:8006
PVE_TOKEN_ID=panel@pve!panel
PVE_TOKEN_SECRET=00000000-0000-0000-0000-000000000000
# Keep true in production. Either use a trusted cert or point PVE_CA_FILE
# at /etc/pve/pve-root-ca.pem copied from your cluster.
PVE_VERIFY_TLS=true
PVE_CA_FILE=
# Pool that customer servers live in; servers customers create are added to it
PVE_POOL=customers
# Private network per customer (see the documentation, "Customer networks"). When enabled,
# every server a customer creates joins that customer's own SDN VNet.
CUSTOMER_NETWORKS=false
SDN_ZONE=panel
# Customers get <prefix>.1.0/24, <prefix>.2.0/24, ... (up to 254 customers)
CUSTOMER_NET_PREFIX=10.100
CUSTOMER_NET_DNS=1.1.1.1
# Destinations customer servers may NOT reach: your LAN, management and any other
# internal networks behind the Proxmox host. The public internet stays reachable.
# If CUSTOMER_NET_DNS is inside these ranges, DNS to it is allowed automatically.
CUSTOMER_BLOCKED_NETS=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.64.0.0/10,169.254.0.0/16
# VPN access through a central WireGuard gateway (see the documentation, "VPN access").
# Needs CUSTOMER_NETWORKS=true.
VPN_ENABLED=false
# VMID of the gateway VM prepared with docs/vpn/setup-gateway.sh
VPN_GATEWAY_VMID=
# What customers' WireGuard apps connect to: your public DNS name or IP + UDP port
VPN_ENDPOINT=vpn.example.com:51820
# Customer N's devices get <prefix>.N.x (must match the setup script)
VPN_NET_PREFIX=10.101
VPN_MAX_DEVICES=10
# Tailscale: customers can connect servers to their OWN Tailscale account
# (see the documentation, "Tailscale"). Works with or without the WireGuard VPN.
TAILSCALE_ENABLED=false
# Windows: how long Windows may sit at its setup (welcome) screens before a
# server creation fails with a hint that the template's unattend.xml is incomplete
WINDOWS_OOBE_TIMEOUT_MINUTES=15
# How long the QEMU guest agent in a server may stop answering (e.g. while an
# installer runs) before a panel job gives up. Short stalls are waited out.
AGENT_UNRESPONSIVE_SECONDS=180
# Plan limits
MAX_SNAPSHOTS=3