gitea: create subdirectory with ConfigMap and OAuth2Client
This commit is contained in:
parent
5fe0710461
commit
ca0bcd1c34
|
@ -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
|
|
@ -14,15 +14,14 @@ spec:
|
|||
name: gitea
|
||||
namespace: stackspout
|
||||
interval: 10m
|
||||
values:
|
||||
ingress:
|
||||
enabled: true
|
||||
hosts:
|
||||
- host: dev.ftt.gmbh
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- secretName: gitea
|
||||
hosts:
|
||||
- dev.ftt.gmbh
|
||||
valuesFrom:
|
||||
- kind: ConfigMap
|
||||
name: stackspin-gitea-values
|
||||
optional: false
|
||||
# Allow overriding values by ConfigMap or Secret
|
||||
- kind: ConfigMap
|
||||
name: stackspin-gitea-override
|
||||
optional: true
|
||||
- kind: Secret
|
||||
name: stackspin-gitea-override
|
||||
optional: true
|
||||
|
|
|
@ -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}"
|
Loading…
Reference in New Issue