mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
migrate forgejo
This commit is contained in:
@@ -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
|
||||
@@ -1,6 +1,2 @@
|
||||
apiVersion: homelab.mortenolsen.pro/v1
|
||||
kind: PostgresDatabase
|
||||
metadata:
|
||||
name: '{{ .Release.Name }}'
|
||||
spec:
|
||||
environment: '{{ .Values.globals.environment }}'
|
||||
{{ include "common.database" . }}
|
||||
|
||||
|
||||
1
apps/charts/forgejo/templates/dns.yaml
Normal file
1
apps/charts/forgejo/templates/dns.yaml
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "common.dns" . }}
|
||||
1
apps/charts/forgejo/templates/oidc.yaml
Normal file
1
apps/charts/forgejo/templates/oidc.yaml
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "common.oidc" . }}
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user