<work_dir>/.env through EnvironmentFile=-<work_dir>/.env. The - prefix means the service still starts if the file does not exist. The panel edits this file for you.
Edit variables
1
Open the editor
Select a project and press .env (Edit .env) in the toolbar. The terminal switches to
EDIT_ENV mode and loads the saved contents.2
Edit and save
Write one
KEY=value per line, the format systemd expects for EnvironmentFile=, then press SAVE_ENV. CANCEL discards your edits..env
3
Restart the service
systemd reads EnvironmentFile= only when the service starts. Press Restart or run a deploy to apply the new values.How it is stored
Saving runsPOST /api/projects/:id/env, which:
- Resolves the working directory (
work_dir, or/opt/<service_name>) throughvalidateWorkDir. System directories and the filesystem root are rejected. - Saves the text in the
env_varscolumn of theprojectstable inaeros.db. - If the working directory exists, writes it to
<work_dir>/.envwith mode0600.
Cache-Control: no-store, so the browser does not cache your secrets. Values are never written to the panel’s logs.
Protect the copies
The same values exist in two places, so protect both:<work_dir>/.env, written as0600and owned by root. If the unit setsUser=,systemdstill reads the file as root before dropping privileges, so the service user does not need read access to it.aeros.db, which the installer sets to0600. Include it in a backup job and treat those archives as secrets too.