From b02303d51e8a2d3f50ac2ca1f6f556709db35ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 28 Mar 2026 00:44:00 +0000 Subject: [PATCH] added SSO, ingress to ingressRoute --- README.md | 5 +++++ deploy/infra/certificate.yaml | 11 +++++++++++ deploy/infra/kustomization.yaml | 4 +++- deploy/infra/public-https-ingress-route.yaml | 15 +++++++++++++++ deploy/infra/websecure-ingress-route.yaml | 15 +++++++++++++++ 5 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 deploy/infra/certificate.yaml create mode 100644 deploy/infra/public-https-ingress-route.yaml create mode 100644 deploy/infra/websecure-ingress-route.yaml diff --git a/README.md b/README.md index 8e0a7f8..f6f2a65 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,17 @@ Welcome to public repository of my [Git Server](https://git.limbosolutions.com) Using [gitea](https://git.limbosolutions.com/kb/gitea) as git server. +- [SSO](#sso) - [Deploy](#deploy) - [Continuous Deploy](#continuous-deploy) - [App](#app) - [Infra](#infra) - [Backups](#backups) +## SSO + + + ## Deploy References: diff --git a/deploy/infra/certificate.yaml b/deploy/infra/certificate.yaml new file mode 100644 index 0000000..c58b39b --- /dev/null +++ b/deploy/infra/certificate.yaml @@ -0,0 +1,11 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: limbosolutions-com-tls +spec: + secretName: limbosolutions-com-tls + issuerRef: + name: leftencrypt-prod + kind: ClusterIssuer + dnsNames: + - git.limbosolutions.com \ No newline at end of file diff --git a/deploy/infra/kustomization.yaml b/deploy/infra/kustomization.yaml index a82b620..3506e35 100644 --- a/deploy/infra/kustomization.yaml +++ b/deploy/infra/kustomization.yaml @@ -3,8 +3,10 @@ kind: Kustomization resources: - namespace.yaml - cd-serviceaccount.yaml - - ingress.yaml - network-policies.yaml + - certificate.yaml + - websecure-ingress-route.yaml + - public-https-ingress-route.yaml generatorOptions: disableNameSuffixHash: true diff --git a/deploy/infra/public-https-ingress-route.yaml b/deploy/infra/public-https-ingress-route.yaml new file mode 100644 index 0000000..d587f6a --- /dev/null +++ b/deploy/infra/public-https-ingress-route.yaml @@ -0,0 +1,15 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: public-https +spec: + entryPoints: + - public-https + routes: + - match: Host(`git.limbosolutions.com`) && !PathPrefix(`-/admin`) + kind: Rule + services: + - name: gitea-http + port: 3000 + tls: + secretName: limbosolutions-com-tls \ No newline at end of file diff --git a/deploy/infra/websecure-ingress-route.yaml b/deploy/infra/websecure-ingress-route.yaml new file mode 100644 index 0000000..0e485b6 --- /dev/null +++ b/deploy/infra/websecure-ingress-route.yaml @@ -0,0 +1,15 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: websecure +spec: + entryPoints: + - websecure + routes: + - match: Host(`git.limbosolutions.com`) + kind: Rule + services: + - name: gitea-http + port: 3000 + tls: + secretName: limbosolutions-com-tls \ No newline at end of file