Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
81 lines (65 loc) · 2.11 KB
/
Copy path.env.example
File metadata and controls
81 lines (65 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# OPNsense Manager - Environment Configuration Template
# Copy this file to .env and fill in your actual values
# NEVER commit .env to version control!
# Database Configuration
DB_HOST=localhost
DB_NAME=opnsense_fw
DB_USER=opnsense_user
DB_PASS=CHANGE_THIS_TO_SECURE_PASSWORD
# Database Root Password (for installation only)
DB_ROOT_PASSWORD=CHANGE_THIS_TO_SECURE_ROOT_PASSWORD
# Application Settings
APP_ENV=production
APP_DEBUG=false
APP_URL=https://your-domain.com
APP_TIMEZONE=UTC
# Security
SESSION_SECRET=GENERATE_RANDOM_STRING_HERE_MIN_32_CHARS
ENCRYPTION_KEY=GENERATE_32_BYTE_RANDOM_KEY_HERE
MAX_LOGIN_ATTEMPTS=5
LOGIN_LOCKOUT_TIME=900
# SMTP Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-app-password-here
SMTP_ENCRYPTION=tls
SMTP_FROM_ADDRESS=noreply@yourdomain.com
SMTP_FROM_NAME="OPNsense Manager"
# Screenshot Account (if needed)
SCREENSHOT_USERNAME=screenshot
SCREENSHOT_PASSWORD=CHANGE_THIS_SECURE_PASSWORD
# ACME/Let's Encrypt
ACME_EMAIL=admin@yourdomain.com
ACME_DOMAIN=yourdomain.com
# Proxy Settings
PROXY_PORT_START=8100
PROXY_PORT_END=8199
# Backup Settings
BACKUP_RETENTION_MONTHS=2
# API Security
API_KEY_LENGTH=32
API_TOKEN_EXPIRY=3600
# Snyk Integration (optional)
SNYK_TOKEN=your-snyk-api-token-here
# Fail2Ban Integration
FAIL2BAN_ENABLED=true
# Feature Flags
ENABLE_2FA=true
ENABLE_GEOIP=false
ENABLE_AUDIT_LOG=true
# GitHub Integration (public repo only)
# REMOVED: GITHUB_PAT - Users should use their own GitHub accounts
GITHUB_USERNAME=agit8or1
GITHUB_REPO=opnmgr
# Secret encryption master key (required as of 3.12.0)
# Encrypts firewall agent credentials, SSH private keys, SMTP/AI credentials
# and MFA recovery codes at rest. Generate with:
# php scripts/generate_master_key.php
# Back it up. Encrypted secrets cannot be recovered without it, and changing it
# makes every already-encrypted value unreadable.
OPNMGR_MASTER_KEY=
# Release signing key (required to publish verified agent updates)
# Ed25519 secret key used to sign downloads/manifest.json. Generate with:
# php scripts/sign_release.php --generate-key
OPNMGR_RELEASE_SIGNING_KEY=