Skip to content

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_plan when publishing).
  • The annual ultimate license is the plan meant to include them. Its license code must carry ota_releases_per_month; the value is the number of releases each App may publish per UTC month. A value of 0 means 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 returns 409 ota_storage_not_configured and 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 when DEPLOYMENT_MODE=saas; a self-hosted operator does not set them.
VariableWho uses itMeaning
NOTTI_OTA_S3_ENDPOINTSaaS onlyS3 host, host[:port], no scheme or path.
NOTTI_OTA_S3_BUCKETSaaS onlyBucket name.
NOTTI_OTA_S3_ACCESS_KEYSaaS onlyAccess key.
NOTTI_OTA_S3_SECRET_KEYSaaS onlySecret key.
NOTTI_OTA_S3_REGIONSaaS onlyOptional region.
NOTTI_OTA_S3_USE_SSLSaaS onlytrue (default) or false.
NOTTI_OTA_RETENTION_INTERVALEvery deploymentHow 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:

sh
openssl rand -hex 32

A key of another length or with non-hex characters stops the server at startup. Keep the key: losing it makes stored credentials unrecoverable.