Repository navigation
Server Configuration
HSM Server is configured via Config/appsettings.json (in release builds) located next to the server executable, or inside the Docker container at the same path.
Most settings can also be changed through the Configuration page in the web UI without restarting the server.
"Kestrel": {
"SensorPort": 44330,
"SitePort": 44333
}| Setting | Default | Description |
|---|---|---|
SensorPort |
44330 |
Port for sensor data ingestion (used by DataCollector and REST API) |
SitePort |
44333 |
Port for the web UI |
Both ports use HTTPS. To change them, edit appsettings.json and restart the server, or update via Configuration → Server in the web UI.
In Docker, map these ports when running the container:
docker run -p 44330:44330 -p 44333:44333 ..."ServerCertificate": {
"CertificatePath": "",
"CertificatePassword": ""
}By default, HSM uses a self-signed certificate. To use your own:
- Set
CertificatePathto the.pfxfile path - Set
CertificatePasswordto the certificate password - Restart the server
When running in Docker, mount the certificate file into the container and reference its path inside the container.
"BackupDatabase": {
"IsEnabled": true,
"PeriodHours": 1,
"StoragePeriodDays": 10,
"SftpConnectionConfig": { ... }
}| Setting | Default | Description |
|---|---|---|
IsEnabled |
true |
Enable/disable automatic backups |
PeriodHours |
1 |
How often to create a backup (in hours) |
StoragePeriodDays |
10 |
How long to keep old backups (in days) |
SftpConnectionConfig |
— | Optional SFTP upload target |
Backups are stored in the DatabasesBackups/ directory. When running in Docker, mount this directory to a host path to keep backups outside the container.
SFTP upload — configure to automatically push backups to a remote server:
"SftpConnectionConfig": {
"Host": "backup.example.com",
"Port": 22,
"Username": "backup_user",
"Password": "...",
"TargetPath": "/backups/hsm"
}"Telegram": {
"BotName": "@YourBotName",
"BotToken": "123456789:AAF...",
"IsRunning": false
}| Setting | Description |
|---|---|
BotName |
Telegram bot username (with or without @) |
BotToken |
Token from @BotFather |
IsRunning |
Whether the bot should start automatically on server launch |
You can start/stop the bot from Configuration → Telegram in the web UI without editing the file.
See Telegram Setup for the full setup guide.
When running with Docker, mount these directories to preserve data across container restarts:
docker run \
-v /host/Logs:/app/Logs \
-v /host/Config:/app/Config \
-v /host/Databases:/app/Databases \
-v /host/DatabasesBackups:/app/DatabasesBackups \
-p 44330:44330 \
-p 44333:44333 \
softfx/hsm-server:latestOr in docker-compose.yml:
volumes:
- ./Logs:/app/Logs
- ./Config:/app/Config
- ./Databases:/app/Databases
- ./DatabasesBackups:/app/DatabasesBackups| Directory | Contents |
|---|---|
Logs/ |
Application logs |
Config/ |
appsettings.json and certificates |
Databases/ |
LevelDB sensor data and metadata |
DatabasesBackups/ |
Automatic database backups |
After first launch, log in with:
- Username:
default - Password:
default
Change the password immediately via Account → Settings in the web UI.
HSM monitors itself and exposes internal metrics as sensors under a dedicated product. You can view server health, request counts, Telegram bot statistics, and more directly in the sensor tree.
See HSM Server Monitoring for details.
Getting Started
- Installation
- How It Works
- Core Concepts
- Server Configuration
- REST API
- MCP (AI agents)
- Server Self-Monitoring
- Sensor Types
- Table Sensors
- Large Files
- Sealed Sensor History
🔔 Alerts
📲 Telegram
HSM DataCollector (NuGet)
- Overview & API
- Quick Start
- Logging
- Statuses
- Sensor Settings
- Table Sensors
- Large Files
- Default sensors
HSM DataCollector (C++)
HSM Web UI
Grafana
Maintainers