forked from catalin/fukuops
feat: add sftpgo tofu deploy
This commit is contained in:
parent
ca10dff87f
commit
4ec9a00370
2 changed files with 39 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ data "authentik_user" "catalin" {
|
||||||
username = "catalin"
|
username = "catalin"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
resource "authentik_group" "ci" {
|
resource "authentik_group" "ci" {
|
||||||
name = "ci"
|
name = "ci"
|
||||||
users = [data.authentik_user.catalin.id]
|
users = [data.authentik_user.catalin.id]
|
||||||
|
|
@ -32,6 +33,10 @@ resource "authentik_group" "vpn" {
|
||||||
is_superuser = false
|
is_superuser = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "authentik_group" "ftp" {
|
||||||
|
name = "ftp"
|
||||||
|
is_superuser = false
|
||||||
|
}
|
||||||
|
|
||||||
module "gitea" {
|
module "gitea" {
|
||||||
source = "../modules/authentik-oidc"
|
source = "../modules/authentik-oidc"
|
||||||
|
|
@ -141,6 +146,30 @@ module "lidarr" {
|
||||||
app_icon = "https://lidarr.audio/img/background/logo.png"
|
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" {
|
module "netbird" {
|
||||||
source = "../modules/authentik-oidc"
|
source = "../modules/authentik-oidc"
|
||||||
app_name = "netbird"
|
app_name = "netbird"
|
||||||
|
|
|
||||||
|
|
@ -48,3 +48,13 @@ variable "netbird_client_secret" {
|
||||||
description = "Netbird client secret"
|
description = "Netbird client secret"
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "sftpgo_client_id" {
|
||||||
|
description = "SFTPGo client ID"
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "sftpgo_client_secret" {
|
||||||
|
description = "SFTPGo client secret"
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue