From 1860f0499440d2b067f183d30c0b273a94e76aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Tue, 12 Sep 2023 16:25:52 +0200 Subject: [PATCH] fix --- apps/nextcloud/index.yaml | 224 +++++++++++++++++----------------- apps/nextcloud/middlewares.tf | 8 +- 2 files changed, 116 insertions(+), 116 deletions(-) diff --git a/apps/nextcloud/index.yaml b/apps/nextcloud/index.yaml index 8246082..fd89211 100644 --- a/apps/nextcloud/index.yaml +++ b/apps/nextcloud/index.yaml @@ -6,6 +6,16 @@ metadata: name: nextcloud description: null options: + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + domain: + default: your-company + examples: + - your-company + type: string backups: default: enable: false @@ -112,6 +122,65 @@ options: default: false type: boolean type: object + postgres: + default: + replicas: 1 + storage: 5Gi + version: '14' + examples: + - replicas: 1 + storage: 5Gi + version: '14' + properties: + replicas: + default: 1 + type: integer + storage: + default: 5Gi + type: string + version: + default: '14' + type: string + type: object + sub-domain: + default: files + examples: + - files + type: string + storage: + default: + accessMode: ReadWriteOnce + size: 10Gi + examples: + - accessMode: ReadWriteOnce + size: 10Gi + properties: + accessMode: + default: ReadWriteOnce + enum: + - ReadWriteOnce + - ReadOnlyMany + - ReadWriteMany + type: string + size: + default: 10Gi + type: string + type: object + openid-name: + default: vynil + examples: + - vynil + type: string + admin: + default: + name: nextcloud_admin + examples: + - name: nextcloud_admin + properties: + name: + default: nextcloud_admin + type: string + type: object apps: default: audioplayer: false @@ -202,26 +271,6 @@ options: default: true type: boolean type: object - postgres: - default: - replicas: 1 - storage: 5Gi - version: '14' - examples: - - replicas: 1 - storage: 5Gi - version: '14' - properties: - replicas: - default: 1 - type: integer - storage: - default: 5Gi - type: string - version: - default: '14' - type: string - type: object hpa: default: avg-cpu: 50 @@ -242,98 +291,6 @@ options: default: 1 type: integer type: object - admin: - default: - name: nextcloud_admin - examples: - - name: nextcloud_admin - properties: - name: - default: nextcloud_admin - type: string - type: object - ingress-class: - default: traefik - examples: - - traefik - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - openid-name: - default: vynil - examples: - - vynil - type: string - sub-domain: - default: files - examples: - - files - type: string - redis: - default: - exporter: - enabled: true - image: quay.io/opstree/redis-exporter:v1.44.0 - image: quay.io/opstree/redis:v7.0.5 - storage: 2Gi - examples: - - exporter: - enabled: true - image: quay.io/opstree/redis-exporter:v1.44.0 - image: quay.io/opstree/redis:v7.0.5 - storage: 2Gi - properties: - exporter: - default: - enabled: true - image: quay.io/opstree/redis-exporter:v1.44.0 - properties: - enabled: - default: true - type: boolean - image: - default: quay.io/opstree/redis-exporter:v1.44.0 - type: string - type: object - image: - default: quay.io/opstree/redis:v7.0.5 - type: string - storage: - default: 2Gi - type: string - type: object - storage: - default: - accessMode: ReadWriteOnce - size: 10Gi - examples: - - accessMode: ReadWriteOnce - size: 10Gi - properties: - accessMode: - default: ReadWriteOnce - enum: - - ReadWriteOnce - - ReadOnlyMany - - ReadWriteMany - type: string - size: - default: 10Gi - type: string - type: object - domain: - default: your-company - examples: - - your-company - type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string images: default: collabora: @@ -497,6 +454,49 @@ options: type: string type: object type: object + ingress-class: + default: traefik + examples: + - traefik + type: string + redis: + default: + exporter: + enabled: true + image: quay.io/opstree/redis-exporter:v1.44.0 + image: quay.io/opstree/redis:v7.0.5 + storage: 2Gi + examples: + - exporter: + enabled: true + image: quay.io/opstree/redis-exporter:v1.44.0 + image: quay.io/opstree/redis:v7.0.5 + storage: 2Gi + properties: + exporter: + default: + enabled: true + image: quay.io/opstree/redis-exporter:v1.44.0 + properties: + enabled: + default: true + type: boolean + image: + default: quay.io/opstree/redis-exporter:v1.44.0 + type: string + type: object + image: + default: quay.io/opstree/redis:v7.0.5 + type: string + storage: + default: 2Gi + type: string + type: object + domain-name: + default: your_company.com + examples: + - your_company.com + type: string dependencies: - dist: null category: share diff --git a/apps/nextcloud/middlewares.tf b/apps/nextcloud/middlewares.tf index 8226781..4f5321a 100644 --- a/apps/nextcloud/middlewares.tf +++ b/apps/nextcloud/middlewares.tf @@ -9,7 +9,7 @@ metadata: spec: redirectRegex: permanent: true - regex: "https://(.*)/.well-known/(card|cal)dav" + regex: "https://([^\/]*)/.well-known/(card|cal)dav" replacement: "https://$${1}/remote.php/dav/" EOF } @@ -23,8 +23,8 @@ metadata: labels: ${jsonencode(local.common-labels)} spec: redirectRegex: - permanent: true - regex: "https://(.*)/.well-known/(.*)" - replacement: "https://$${1}/index.php/$${2}" + permanent: false + regex: "https://([^\/]*)/.well-known/(.*)" + replacement: "https://$${1}/index.php/.well-known/$${2}" EOF }