chore: Sync repos

This commit is contained in:
Tera << 8 2025-04-11 18:02:10 -04:00
parent e18821eacd
commit ccb0c48ce3
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
18 changed files with 287 additions and 729 deletions

View file

@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hcaptcha-terah-dev-ingress
namespace: hcaptcha
spec:
rules:
- host: mcaptcha.terah.dev
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hcaptcha-terah-dev
port:
name: web

View file

@ -0,0 +1,26 @@
[meta]
format_ver = 1
[hcaptcha.terah.dev_website]
depends_on = traefik:hcaptcha_postgres:hcaptcha_secrets
mode = k3s
[#hcaptcha.terah.dev_website/k3s]
mode = install
yml_path = ./website.yml
[hcaptcha.terah.dev_service]
depends_on = hcaptcha.terah.dev_website
mode = k3s
[#hcaptcha.terah.dev_service/k3s]
mode = install
yml_path = ./service.yml
[hcaptcha.terah.dev_ingress]
depends_on = hcaptcha.terah.dev_website
mode = k3s
[#hcaptcha.terah.dev_ingress/k3s]
mode = install
yml_path = ./ingress.yml

View file

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: hcaptcha-terah-dev
namespace: hcaptcha
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: hcaptcha-terah-dev

View file

@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hcaptcha-terah-dev
namespace: hcaptcha
labels:
app: hcaptcha-terah-dev
spec:
replicas: 1
selector:
matchLabels:
app: hcaptcha-terah-dev
template:
metadata:
labels:
app: hcaptcha-terah-dev
spec:
containers:
- name: http
image: mcaptcha/mcaptcha:latest
env:
- name: RUST_LOG
value: debug
- name: MCAPTCHA_allow_registration
value: "false"
- name: MCAPTCHA_server_DOMAIN
value: "mcaptcha.terah.dev"
- name: DATABASE_URL
value: postgres://hcaptcha:hcaptcha@postgres-postgresql:5432/hcaptcha
- name: MCAPTCHA_redis_URL
value: redis://redis-master
- name: PORT
value: "80"
- name: MCAPTCHA_captcha_SALT
valueFrom:
secretKeyRef:
name: hcaptcha-secrets
key: captcha-salt
- name: MCAPTCHA__server_COOKIE_SECRET
valueFrom:
secretKeyRef:
name: hcaptcha-secrets
key: cookie-secret
ports:
- name: web
containerPort: 80

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: hcaptcha

View file

@ -0,0 +1,13 @@
global:
postgresql:
auth:
username: hcaptcha
database: hcaptcha
password: hcaptcha
primary:
persistence:
enabled: true
storageClass: longhorn
resources:
limits:
memory: 1024Mi

View file

@ -0,0 +1,14 @@
[meta]
format_ver = 1
[hcaptcha_postgres]
description = Postgres configuration for hcaptcha
mode = helm
depends_on = hcaptcha_namespace
[#hcaptcha_postgres/helm]
mode = upgrade
name = postgres
repo = oci://registry-1.docker.io/bitnamicharts/postgresql
options_file = ./postgres.yml
namespace = hcaptcha

View file

@ -0,0 +1,23 @@
[meta]
format_ver = 1
[hcaptcha_namespace]
description = Namespace for hCaptcha to reside in
mode = k3s
depends_on = traefik:nfs_provisioner
[#hcaptcha_namespace/k3s]
mode = install
yml_path = ./namespace.yml
[hcaptcha_db_project]
mode = include
path = ./postgres/project.ini
[hcaptcha_cache_project]
mode = include
path = ./redis/project.ini
[hcaptcha_app_project]
mode = include
path = ./hcaptcha/project.ini

View file

@ -0,0 +1,14 @@
[meta]
format_ver = 1
[hcaptcha_redis]
description = Postgres configuration for hcaptcha
mode = helm
depends_on = hcaptcha_namespace
[#hcaptcha_redis/helm]
mode = upgrade
name = redis
repo = oci://registry-1.docker.io/bitnamicharts/redis
options_file = ./redis.yml
namespace = hcaptcha

View file

@ -0,0 +1,16 @@
image:
repository: mcaptcha/cache
tag: v0.1.0
global:
security:
allowInsecureImages: true
master:
command:
["redis-server", "--loadmodule", "/usr/lib/redis/modules/libcache.so"]
persistence:
enabled: true
storageClass: longhorn
auth:
enabled: false
replica:
replicaCount: 0