gitea: create subdirectory with ConfigMap and OAuth2Client

This commit is contained in:
xeruf 2022-06-28 08:23:42 +01:00
parent 5fe0710461
commit ca0bcd1c34
3 changed files with 53 additions and 12 deletions

View File

@ -0,0 +1,21 @@
apiVersion: hydra.ory.sh/v1alpha1
kind: OAuth2Client
metadata:
name: gitea-oauth-client
# Has to live in the same namespace as the stackspin-wordpress-oauth-variables secret
namespace: flux-system
spec:
# TODO copied from wekan: https://github.com/wekan/wekan/wiki/Keycloak
grantTypes:
- authorization_code
- refresh_token
- client_credentials
- implicit
responseTypes:
- id_token
- code
scope: "openid profile email stackspin_roles"
secretName: stackspin-gitea-oauth-variables
#redirectUris:
# - https://dev.${domain}/oauth/openid/
#tokenEndpointAuthMethod: client_secret_post

View File

@ -14,15 +14,14 @@ spec:
name: gitea name: gitea
namespace: stackspout namespace: stackspout
interval: 10m interval: 10m
values: valuesFrom:
ingress: - kind: ConfigMap
enabled: true name: stackspin-gitea-values
hosts: optional: false
- host: dev.ftt.gmbh # Allow overriding values by ConfigMap or Secret
paths: - kind: ConfigMap
- path: / name: stackspin-gitea-override
pathType: Prefix optional: true
tls: - kind: Secret
- secretName: gitea name: stackspin-gitea-override
hosts: optional: true
- dev.ftt.gmbh

View File

@ -0,0 +1,21 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: stackspin-gitea-values
namespace: stackspout
data:
values.yaml:
ingress:
enabled: true
annotations:
kubernetes.io/tls-acme: "true"
hosts:
- host: "dev.${domain}"
paths:
- path: /
pathType: Prefix
tls:
- secretName: gitea-tls
hosts:
- "dev.${domain}"