Compare commits
2
Commits
170c3a069e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
284ecc4581
|
||
|
|
6144791cb9
|
@@ -74,6 +74,19 @@
|
|||||||
bindPassword: "{{ openldap_readonly_password }}"
|
bindPassword: "{{ openldap_readonly_password }}"
|
||||||
usernameAttribute: uid
|
usernameAttribute: uid
|
||||||
publicSSHKeyAttribute: sshPublicKey
|
publicSSHKeyAttribute: sshPublicKey
|
||||||
|
# Sign-in through Dex; only members of Gitea Users (sent in the groups
|
||||||
|
# claim) may log in. The name "Dex" fixes the callback URL
|
||||||
|
# /user/oauth2/Dex/callback registered in Dex.
|
||||||
|
oauth:
|
||||||
|
- name: Dex
|
||||||
|
provider: openidConnect
|
||||||
|
key: gitea
|
||||||
|
secret: "{{ gitea_dex_client_secret }}"
|
||||||
|
autoDiscoverUrl: https://dex.eom.dev/.well-known/openid-configuration
|
||||||
|
scopes: "openid profile email groups"
|
||||||
|
requiredClaimName: groups
|
||||||
|
requiredClaimValue: Gitea Users
|
||||||
|
groupClaimName: groups
|
||||||
config:
|
config:
|
||||||
APP_NAME: "Gitea"
|
APP_NAME: "Gitea"
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -1,78 +0,0 @@
|
|||||||
- name: deploy mcp
|
|
||||||
k8s:
|
|
||||||
definition:
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: mcp
|
|
||||||
namespace: gitea
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: mcp
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: mcp
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: mcp
|
|
||||||
image: gitea/gitea-mcp-server
|
|
||||||
env:
|
|
||||||
- name: GITEA_HOST
|
|
||||||
value: https://gitea.eom.dev
|
|
||||||
- name: GITEA_INSECURE
|
|
||||||
value: "false"
|
|
||||||
- name: GITEA_ACCESS_TOKEN
|
|
||||||
value: "{{ localai_gitea_access_token }}"
|
|
||||||
- name: MCP_MODE
|
|
||||||
value: http
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
|
|
||||||
- name: service for mcp
|
|
||||||
k8s:
|
|
||||||
definition:
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: mcp
|
|
||||||
namespace: gitea
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: mcp
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
name: http
|
|
||||||
targetPort: 8080
|
|
||||||
type: ClusterIP
|
|
||||||
|
|
||||||
- name: ingress
|
|
||||||
k8s:
|
|
||||||
state: present
|
|
||||||
definition:
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: ca-issuer
|
|
||||||
name: mcp
|
|
||||||
namespace: gitea
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: mcp.gitea.eom.dev
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: /
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: mcp
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- mcp.gitea.eom.dev
|
|
||||||
secretName: mcp
|
|
||||||
Reference in New Issue
Block a user