Configuration Files¶
/etc/starkone/starkone.env¶
The main environment file read by starkone-panel on startup.
JWT_SECRET=<random-secret>
PORT=2087
DB_PATH=/etc/starkone/starkone.db
STARKLAYER_TOKEN=<optional-token>
STARKLAYER_ALLOW_IPS=<optional-comma-separated-ips>
| Variable | Description |
|---|---|
JWT_SECRET |
Secret key used to sign JWT tokens. Changing this invalidates all active sessions. |
PORT |
Port the panel listens on (default: 2087) |
DB_PATH |
Path to the SQLite database |
STARKLAYER_TOKEN |
Authentication token for StarkLayer (remote monitoring) endpoints |
STARKLAYER_ALLOW_IPS |
Comma-separated IPs allowed to call StarkLayer endpoints |
/etc/starkone/starkone.db¶
SQLite database. Contains all panel state. Do not edit manually - use migrations.
/etc/starkone/.mysql.conf¶
MySQL root credentials in my.cnf format:
Used by the panel to connect to MySQL without exposing the password in process arguments.
/etc/starkone/users_data/<username>/¶
Per-website configuration directory. Contains:
nginx_acl.json- Nginx ACL ruleset for this website- Other per-site metadata
/etc/starkone/nginx_acl_public.json¶
Shared (public) ACL rulesets that can be assigned to any website. Managed via the Nginx ACL plugin.
/usr/share/starkone/¶
Read-only panel assets:
/usr/share/starkone/
├── web/
│ └── index.html # Compiled single-page app
├── locales/ # UI translation files (JSON)
└── migrations/ # Database migration SQL files
├── 001_initial.up.sql
├── 002_users.up.sql
└── ...
/var/log/starkone/¶
Log directory. The panel writes structured logs here. Rotate with logrotate.
General Settings (Database)¶
General settings stored in the database (general_settings table) are managed via:
# Get all settings
GET /api/settings
# Update a setting
PATCH /api/settings
{ "key": "maintenance_mode", "value": "0" }
Requires superuser. Notable settings:
| Key | Description |
|---|---|
maintenance_mode |
Set to "1" to put the panel in maintenance mode |
server_name |
Display name for the server |
cloudflare_api_key |
Global Cloudflare API key |
cloudflare_email |
Cloudflare account email |