feat: add sftpgo tofu deploy

This commit is contained in:
cătălin 2024-12-11 14:47:15 +01:00
commit 4ec9a00370
No known key found for this signature in database
2 changed files with 39 additions and 0 deletions

View file

@ -17,6 +17,7 @@ data "authentik_user" "catalin" {
username = "catalin"
}
resource "authentik_group" "ci" {
name = "ci"
users = [data.authentik_user.catalin.id]
@ -32,6 +33,10 @@ resource "authentik_group" "vpn" {
is_superuser = false
}
resource "authentik_group" "ftp" {
name = "ftp"
is_superuser = false
}
module "gitea" {
source = "../modules/authentik-oidc"
@ -141,6 +146,30 @@ module "lidarr" {
app_icon = "https://lidarr.audio/img/background/logo.png"
}
module "sftpgo" {
source = "../modules/authentik-oidc"
app_name = "SFTPGo"
app_slug = "SFTPGo"
client_id = var.sftpgo_client_id
client_secret = var.sftpgo_client_secret
client_type = "confidential"
app_access_group_id = authentik_group.ftp.id
redirect_uris = [
{
matching_mode = "regex",
url = "https://ftp.fukurokuju.dev/.*"
}
]
extra_property_mappings = [
]
app_icon = "https://ftp.fukurokuju.dev/static/img/logo.png"
access_token_validity = "days=10"
app_url = "https://ftp.fukurokuju.dev"
app_description = "SFTPGo"
sub_mode = "user_username"
}
module "netbird" {
source = "../modules/authentik-oidc"
app_name = "netbird"