feat: implement notifications and admin notification api

This commit is contained in:
2026-06-01 12:11:14 -04:00
parent 89394795e5
commit 07dea33680
11 changed files with 757 additions and 0 deletions
@@ -0,0 +1,6 @@
resource "immich_admin_notification" "announcement" {
type = "SYSTEM"
level = "INFO"
title = "Maintenance Scheduled"
description = "Immich will be down for maintenance on Sunday at 2 AM UTC."
}
@@ -22,4 +22,22 @@ resource "immich_system_config" "example" {
url = "http://immich-machine-learning:3003"
clip_model = "ViT-L-14__openai"
}
notifications = {
smtp = {
enabled = true
host = "smtp.example.com"
port = 587
username = "user@example.com"
password = "secure-smtp-password"
from = "immich@example.com"
secure = true
}
}
templates = {
email = {
welcome_template = "Welcome to Immich, {{name}}!"
}
}
}