Beta
See What Beta means.
This page is for operators of a self-hosted Notti install. Everything else about Live updates works as described in the overview.
License
Live updates need the plan feature ota_releases_per_month. On self-hosted it is read from the signed license code (the features of an active license, or one in its 3-day grace after expiry), the same way the SaaS reads it from the plan. The server reads the feature, not the plan name:
- The embedded Free self-hosted plan has no such feature, so Live updates are off (
402 ota_not_in_planwhen publishing). - The annual
ultimatelicense is the plan meant to include them. Its license code must carryota_releases_per_month; the value is the number of releases each App may publish per UTC month. A value of0means off. - A revoked or expired license (past the grace) has no Live updates.
See Self-Hosted License for how to activate a code. To confirm what your code carries, open the App's Live updates screen: the usage meter shows the limit.
Storage
Release archives are stored in an S3-compatible bucket, private: Notti uploads and downloads only through presigned URLs valid for 15 minutes, writes objects with Cache-Control: private and no ACL, and never needs a public URL.
- Self-hosted uses the Company's own storage settings: Company settings, Image storage (endpoint, bucket, credentials). OTA objects go under an
ota/prefix of that bucket. Until it is configured, publishing returns409 ota_storage_not_configuredand the dashboard shows a banner. Keep the bucket private. - SaaS uses one Zeep-operated bucket set with the
NOTTI_OTA_S3_*variables below. They are read only whenDEPLOYMENT_MODE=saas; a self-hosted operator does not set them.
| Variable | Who uses it | Meaning |
|---|---|---|
NOTTI_OTA_S3_ENDPOINT | SaaS only | S3 host, host[:port], no scheme or path. |
NOTTI_OTA_S3_BUCKET | SaaS only | Bucket name. |
NOTTI_OTA_S3_ACCESS_KEY | SaaS only | Access key. |
NOTTI_OTA_S3_SECRET_KEY | SaaS only | Secret key. |
NOTTI_OTA_S3_REGION | SaaS only | Optional region. |
NOTTI_OTA_S3_USE_SSL | SaaS only | true (default) or false. |
NOTTI_OTA_RETENTION_INTERVAL | Every deployment | How often the retention job runs. A Go duration of at least 1m, default 24h. |
The four required S3 variables must be set together, or none. The server refuses to start with an invalid NOTTI_OTA_RETENTION_INTERVAL.
Retention
A retention job sweeps every App each interval and deletes:
- Device events older than 90 days. Daily counts stay as long as their release.
- Unused uploads (an upload no release used) after 24 hours.
- Release archives that left the retained set. An archive is retained while the release is among the 10 newest of its platform and channel, or a device ran it in the last 30 days; 30 days after it stops being retained, the archive is deleted. The newest enabled release of each platform, channel and runtime version is never deleted. A release whose archive was deleted stays in the list, marked
Archive deleted, and is no longer offered.
NOTTI_MASTER_KEY
The server needs NOTTI_MASTER_KEY, the key that encrypts credentials stored on the Company, including the storage credentials Live updates use. It must be exactly 64 hex characters (32 bytes). Generate one with:
openssl rand -hex 32A key of another length or with non-hex characters stops the server at startup. Keep the key: losing it makes stored credentials unrecoverable.