feat: initial implementation with docs and system_config
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
resource "immich_album" "example" {
|
||||
name = "Vacation 2024"
|
||||
description = "Photos from our summer vacation"
|
||||
order = "desc"
|
||||
|
||||
users = [
|
||||
{
|
||||
user_id = "some-user-id"
|
||||
role = "Editor"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
resource "immich_api_key" "example" {
|
||||
name = "Example API Key"
|
||||
permissions = ["asset.read", "asset.upload"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
resource "immich_shared_link" "example" {
|
||||
type = "ALBUM"
|
||||
album_id = "some-album-id"
|
||||
description = "My shared album"
|
||||
allow_download = true
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
resource "immich_system_config" "example" {
|
||||
password_login = {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
oauth = {
|
||||
enabled = true
|
||||
issuer_url = "https://keycloak.example.com/realms/immich"
|
||||
client_id = "immich-client"
|
||||
client_secret = "your-client-secret"
|
||||
scope = "openid profile email"
|
||||
button_text = "Login with Keycloak"
|
||||
auto_register = true
|
||||
}
|
||||
|
||||
storage_template = {
|
||||
template = "{{y}}/{{y}}-{{m}}-{{d}}/{{filename}}"
|
||||
}
|
||||
|
||||
machine_learning = {
|
||||
enabled = true
|
||||
url = "http://immich-machine-learning:3003"
|
||||
clip_model = "ViT-L-14__openai"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
resource "immich_user" "example" {
|
||||
email = "user@example.com"
|
||||
name = "Example User"
|
||||
password = "securepassword123"
|
||||
is_admin = false
|
||||
}
|
||||
Reference in New Issue
Block a user