migrate forgejo

This commit is contained in:
Morten Olsen
2026-01-02 09:03:37 +01:00
parent 8f3f96a685
commit faaad9dac4
24 changed files with 26 additions and 342 deletions

View File

@@ -1,10 +0,0 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: OidcClient
metadata:
name: '{{ .Release.Name }}'
spec:
environment: '{{ .Values.globals.environment }}'
redirectUris:
- path: /user/oauth2/Authentik/callback
subdomain: '{{ .Values.subdomain }}'
matchingMode: strict

View File

@@ -1,6 +1,2 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: PostgresDatabase
metadata:
name: '{{ .Release.Name }}'
spec:
environment: '{{ .Values.globals.environment }}'
{{ include "common.database" . }}

View File

@@ -0,0 +1 @@
{{ include "common.dns" . }}

View File

@@ -0,0 +1 @@
{{ include "common.oidc" . }}

View File

@@ -24,6 +24,23 @@ container:
type: tcpSocket
port: http # Use named port
# DNS configuration
dns:
enabled: true
type: A
dnsClassRef:
name: private-dns
# OIDC/Authentik configuration
oidc:
enabled: true
redirectUris:
- "/user/oauth2/Authentik/callback"
# Database configuration
database:
enabled: true
# Service configuration - multiple services
service:
ports:
@@ -84,22 +101,22 @@ env:
FORGEJO__database__NAME:
valueFrom:
secretKeyRef:
name: "{release}-pg-connection"
name: "{release}-connection"
key: database
FORGEJO__database__HOST:
valueFrom:
secretKeyRef:
name: "{release}-pg-connection"
name: "{release}-connection"
key: host
FORGEJO__database__USER:
valueFrom:
secretKeyRef:
name: "{release}-pg-connection"
name: "{release}-connection"
key: user
FORGEJO__database__PASSWD:
valueFrom:
secretKeyRef:
name: "{release}-pg-connection"
name: "{release}-connection"
key: password
# Actions configuration
FORGEJO__actions__ENABLED: "true"