fix
This commit is contained in:
@@ -47,7 +47,7 @@ resource "kubectl_manifest" "directus_config" {
|
|||||||
TELEMETRY: "false"
|
TELEMETRY: "false"
|
||||||
AUTH_PROVIDERS: "vynil"
|
AUTH_PROVIDERS: "vynil"
|
||||||
AUTH_VYNIL_DRIVER: "oauth2"
|
AUTH_VYNIL_DRIVER: "oauth2"
|
||||||
AUTH_VYNIL_ISSUER_URL: "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/${replace(var.sub-domain, ".", "-")}-${var.instance}/.well-known/openid-configuration"
|
AUTH_VYNIL_ISSUER_URL: "https://${data.kubernetes_ingress_v1.authentik.spec[0].rule[0].host}/application/o/directus-${replace(var.sub-domain, ".", "-")}-${var.instance}/.well-known/openid-configuration"
|
||||||
AUTH_VYNIL_IDENTIFIER_KEY: "nickname"
|
AUTH_VYNIL_IDENTIFIER_KEY: "nickname"
|
||||||
PUBLIC_URL: "https://${local.directus-dns-name}"
|
PUBLIC_URL: "https://${local.directus-dns-name}"
|
||||||
EOF
|
EOF
|
||||||
@@ -219,7 +219,7 @@ module "directus-ingress" {
|
|||||||
module "directus-application" {
|
module "directus-application" {
|
||||||
count = var.extentions.directus.enable ? 1 : 0
|
count = var.extentions.directus.enable ? 1 : 0
|
||||||
source = "/dist/modules/application"
|
source = "/dist/modules/application"
|
||||||
component = replace(var.sub-domain, ".", "-")
|
component = "directus-${replace(var.sub-domain, ".", "-")}"
|
||||||
instance = var.instance
|
instance = var.instance
|
||||||
app-group = var.app-group
|
app-group = var.app-group
|
||||||
dns-name = local.directus-dns-name
|
dns-name = local.directus-dns-name
|
||||||
@@ -233,7 +233,7 @@ module "directus-application" {
|
|||||||
module "directus-oauth2" {
|
module "directus-oauth2" {
|
||||||
count = var.extentions.directus.enable ? 1 : 0
|
count = var.extentions.directus.enable ? 1 : 0
|
||||||
source = "/dist/modules/oauth2"
|
source = "/dist/modules/oauth2"
|
||||||
component = replace(var.sub-domain, ".", "-")
|
component = "directus-${replace(var.sub-domain, ".", "-")}"
|
||||||
instance = var.instance
|
instance = var.instance
|
||||||
namespace = var.namespace
|
namespace = var.namespace
|
||||||
labels = local.directus-labels
|
labels = local.directus-labels
|
||||||
|
|||||||
@@ -6,6 +6,79 @@ metadata:
|
|||||||
name: dataset-pg
|
name: dataset-pg
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
|
ingress-class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
roles:
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
default: alt-account
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: array
|
||||||
|
domain-name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
backups:
|
||||||
|
default:
|
||||||
|
enable: false
|
||||||
|
endpoint: ''
|
||||||
|
key-id-key: s3-id
|
||||||
|
retention:
|
||||||
|
db: 30d
|
||||||
|
schedule:
|
||||||
|
db: 0 3 * * *
|
||||||
|
secret-key: s3-secret
|
||||||
|
secret-name: backup-settings
|
||||||
|
examples:
|
||||||
|
- enable: false
|
||||||
|
endpoint: ''
|
||||||
|
key-id-key: s3-id
|
||||||
|
retention:
|
||||||
|
db: 30d
|
||||||
|
schedule:
|
||||||
|
db: 0 3 * * *
|
||||||
|
secret-key: s3-secret
|
||||||
|
secret-name: backup-settings
|
||||||
|
properties:
|
||||||
|
enable:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
endpoint:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
key-id-key:
|
||||||
|
default: s3-id
|
||||||
|
type: string
|
||||||
|
retention:
|
||||||
|
default:
|
||||||
|
db: 30d
|
||||||
|
properties:
|
||||||
|
db:
|
||||||
|
default: 30d
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
schedule:
|
||||||
|
default:
|
||||||
|
db: 0 3 * * *
|
||||||
|
properties:
|
||||||
|
db:
|
||||||
|
default: 0 3 * * *
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
secret-key:
|
||||||
|
default: s3-secret
|
||||||
|
type: string
|
||||||
|
secret-name:
|
||||||
|
default: backup-settings
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
extentions:
|
extentions:
|
||||||
default:
|
default:
|
||||||
directus:
|
directus:
|
||||||
@@ -187,94 +260,6 @@ options:
|
|||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
backups:
|
|
||||||
default:
|
|
||||||
enable: false
|
|
||||||
endpoint: ''
|
|
||||||
key-id-key: s3-id
|
|
||||||
retention:
|
|
||||||
db: 30d
|
|
||||||
schedule:
|
|
||||||
db: 0 3 * * *
|
|
||||||
secret-key: s3-secret
|
|
||||||
secret-name: backup-settings
|
|
||||||
examples:
|
|
||||||
- enable: false
|
|
||||||
endpoint: ''
|
|
||||||
key-id-key: s3-id
|
|
||||||
retention:
|
|
||||||
db: 30d
|
|
||||||
schedule:
|
|
||||||
db: 0 3 * * *
|
|
||||||
secret-key: s3-secret
|
|
||||||
secret-name: backup-settings
|
|
||||||
properties:
|
|
||||||
enable:
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
endpoint:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
key-id-key:
|
|
||||||
default: s3-id
|
|
||||||
type: string
|
|
||||||
retention:
|
|
||||||
default:
|
|
||||||
db: 30d
|
|
||||||
properties:
|
|
||||||
db:
|
|
||||||
default: 30d
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
schedule:
|
|
||||||
default:
|
|
||||||
db: 0 3 * * *
|
|
||||||
properties:
|
|
||||||
db:
|
|
||||||
default: 0 3 * * *
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
secret-key:
|
|
||||||
default: s3-secret
|
|
||||||
type: string
|
|
||||||
secret-name:
|
|
||||||
default: backup-settings
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
roles:
|
|
||||||
default: []
|
|
||||||
items:
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
default: alt-account
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: array
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
storage:
|
|
||||||
default: 8Gi
|
|
||||||
examples:
|
|
||||||
- 8Gi
|
|
||||||
type: string
|
|
||||||
sub-domain:
|
|
||||||
default: dataset-pg
|
|
||||||
examples:
|
|
||||||
- dataset-pg
|
|
||||||
type: string
|
|
||||||
ingress-class:
|
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
app-group:
|
|
||||||
default: api
|
|
||||||
examples:
|
|
||||||
- api
|
|
||||||
type: string
|
|
||||||
databases:
|
databases:
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
@@ -284,20 +269,35 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
|
storage:
|
||||||
|
default: 8Gi
|
||||||
|
examples:
|
||||||
|
- 8Gi
|
||||||
|
type: string
|
||||||
domain:
|
domain:
|
||||||
default: your-company
|
default: your-company
|
||||||
examples:
|
examples:
|
||||||
- your-company
|
- your-company
|
||||||
type: string
|
type: string
|
||||||
|
issuer:
|
||||||
|
default: letsencrypt-prod
|
||||||
|
examples:
|
||||||
|
- letsencrypt-prod
|
||||||
|
type: string
|
||||||
replicas:
|
replicas:
|
||||||
default: 1
|
default: 1
|
||||||
examples:
|
examples:
|
||||||
- 1
|
- 1
|
||||||
type: integer
|
type: integer
|
||||||
domain-name:
|
sub-domain:
|
||||||
default: your_company.com
|
default: dataset-pg
|
||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- dataset-pg
|
||||||
|
type: string
|
||||||
|
app-group:
|
||||||
|
default: api
|
||||||
|
examples:
|
||||||
|
- api
|
||||||
type: string
|
type: string
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
|
|||||||
Reference in New Issue
Block a user