3.3 KiB
3.3 KiB
Configuration Guide
This guide covers the configuration options for ACC Server Manager.
Environment Variables
Required Variables (Auto-generated)
These are automatically created by the setup script:
JWT_SECRET- Authentication token secretAPP_SECRET- Application encryption keyENCRYPTION_KEY- Database encryption key
Optional Variables
| Variable | Description | Default |
|---|---|---|
PORT |
Web server port | 3000 |
DB_NAME |
Database filename | acc.db |
STEAMCMD_PATH |
Path to SteamCMD | c:\steamcmd\steamcmd.exe |
NSSM_PATH |
Path to NSSM | .\nssm.exe |
CORS_ALLOWED_ORIGIN |
Allowed CORS origins | http://localhost:5173 |
Setting Environment Variables
Temporary (Current Session)
# PowerShell
$env:PORT = "8080"
$env:STEAMCMD_PATH = "D:\tools\steamcmd\steamcmd.exe"
Permanent (System-wide)
- Open System Properties → Advanced → Environment Variables
- Add new system variables with desired values
- Restart the application
Server Configuration
ACC Server Settings
Each ACC server instance has its own configuration managed through the web interface:
- Server Name - Display name in the manager
- Port Settings - TCP/UDP ports (auto-assigned or manual)
- Configuration Files - Edit
configuration.json,settings.json, etc.
Firewall Rules
The application automatically manages Windows Firewall rules for ACC servers:
- Creates inbound rules for TCP and UDP ports
- Names rules as "ACC Server - [ServerName]"
- Removes rules when server is deleted
Security Configuration
Password Requirements
- Minimum 8 characters
- Mix of uppercase, lowercase, numbers
- Special characters recommended
Session Management
- JWT tokens expire after 24 hours
- Refresh tokens available for extended sessions
- Configurable timeout in future releases
Database
SQLite Configuration
- Database file:
acc.db(configurable viaDB_NAME) - Automatic backups: Not yet implemented
- Location: Application root directory
Data Encryption
Sensitive data is encrypted using AES-256:
- Steam credentials
- User passwords (bcrypt)
- API keys
Logging
Log Files
Located in logs/ directory:
app.log- General application logserror.log- Error messagesaccess.log- HTTP access logs
Log Rotation
Currently manual - delete old logs periodically.
Performance Tuning
Database Optimization
- Use SSD for database location
- Regular VACUUM operations recommended
- Keep database size under 1GB
Memory Usage
- Base usage: ~50MB
- Per server instance: ~10MB
- Caching: ~100MB
Advanced Configuration
Custom Ports
To use custom port ranges for ACC servers:
- Log into web interface
- Go to Settings → Server Defaults
- Set port range (e.g., 9600-9700)
Multiple IPs
If your server has multiple network interfaces:
- ACC servers will bind to all interfaces by default
- Configure specific IPs in ACC server settings files
Configuration Best Practices
- Backup your
.envfile - Contains encryption keys - Use strong passwords - Especially for admin account
- Regular updates - Keep ACC Server Manager updated
- Monitor logs - Check for errors or warnings
- Test changes - Verify configuration changes work as expected