feat: implement notifications and admin notification api
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
data "immich_notifications" "my_unread" {
|
||||
unread_only = true
|
||||
}
|
||||
|
||||
output "unread_notifications" {
|
||||
value = data.immich_notifications.my_unread.notifications
|
||||
}
|
||||
@@ -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}}!"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user