Skip to content

Commit

Permalink
Adding monicahq
Browse files Browse the repository at this point in the history
  • Loading branch information
mbovo committed May 30, 2024
1 parent 97d03fc commit 1ca0394
Show file tree
Hide file tree
Showing 14 changed files with 137 additions and 22 deletions.
4 changes: 4 additions & 0 deletions high/apps/monica/.sops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
creation_rules:
- path_regex: .*.yaml
encrypted_regex: ^(data|stringData|consumerKey|email|groupName|applicationKey|host|hosts|addresses|server|configLogicalBackup|channel|monica|mariadb|redis)$
pgp: 46FAA8106554E4BAC648A9C8DAC3C1A5974CE5A1
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
targetNamespace: monicahq
chart:
spec:
chart: monica
chart: charts/monica
sourceRef:
kind: GitRepository
name: monicahq
Expand All @@ -21,4 +21,6 @@ spec:
retries: 3
valuesFrom:
- kind: ConfigMap
name: monicahq-values
name: monicahq-values
- kind: Secret
name: monicahq-secrets
5 changes: 5 additions & 0 deletions high/apps/monica/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ configMapGenerator:
namespace: flux-system
files:
- values.yaml=values.yaml
secretGenerator:
- name: monicahq-secrets
namespace: flux-system
files:
- values.yaml=secrets.yaml
configurations:
- kustomizeconfig.yaml
5 changes: 5 additions & 0 deletions high/apps/monica/kustomizeconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ nameReference:
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
- kind: Secret
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
50 changes: 50 additions & 0 deletions high/apps/monica/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
monica:
host: ENC[AES256_GCM,data:fJ1bLuGGb5naFkbXOX/3irtK,iv:2OebH62oZMmViy8PCZV1vvqw1ZCY7RQNDwJX9jW8Kno=,tag:rf4NDNS6xGA6iiBJdTF64Q==,type:str]
mail:
fromAddress: ENC[AES256_GCM,data:Q1L5rg==,iv:iKZQD2H/GvdJNP23z6e1k7r8TguDJNMhJCYQGnhTIVA=,tag:mdmyySLeMG4BFAn2mkqQxg==,type:str]
replyToAddress: ENC[AES256_GCM,data:mpylKA==,iv:dgheOtFObz3IMCAWFJfid30t5jTRTPhZzVgbvbv2R9E=,tag:niWFgRhoz426Wg5B2Igk0w==,type:str]
smtp:
host: ENC[AES256_GCM,data:P1xmFu77aQmatg==,iv:uTH+QV7dOXL8zHs7PKD3U2qHFZYHD92iVZm4GuKavsc=,tag:MMWOhPqEseRXLkbovd9j6w==,type:str]
username: ENC[AES256_GCM,data:357cGQ==,iv:CmzF5moUqDGUZy5sQnshhltSXeFVYVlTJdwK/FGtD4g=,tag:rLreI2Fm50PCW0655QFuIw==,type:str]
password: ENC[AES256_GCM,data:cqM5MA==,iv:VOHbIf5jOlTA8jLwgQfRDnmMWA33oEE809wCyJ0GmKs=,tag:tdOXsdXKWlLgHDsYOKo92A==,type:str]
mariadb:
auth:
database: ENC[AES256_GCM,data:5cqnVwrt,iv:vfYsJMXTbX7zTRsWnf5zh9Qql5dKgE6sLycECT5G1wU=,tag:Z+8TvPCC3eEg06IqfrH8RQ==,type:str]
username: ENC[AES256_GCM,data:ZmKlnE9qtdJejb7CzXqxM8LvrJQM,iv:ul6M4hKMyLRGMkvm2/jibwyXHjDDLN5tvV5oPhbr2Yk=,tag:kB/UsABshtplYEjn4b8KtQ==,type:str]
password: ENC[AES256_GCM,data:mQBim2XIrmIIsGpqRqk=,iv:7esUYfD+Smjw6Mh9VyRWlrPoRyeNjPSXPLJVnDIXZ6I=,tag:m42iVrXeciioZ5Eg3i1p5g==,type:str]
redis:
auth:
enabled: ENC[AES256_GCM,data:xvKgOw==,iv:RkSWsMg+c/HlpQKAJJIHHOoTTD2jiqLXc9YccY7w0ZU=,tag:RbRwZIksS3DHNpbyPoONGw==,type:bool]
password: ENC[AES256_GCM,data:MNYb/yXFPGdjcVCVZAE=,iv:PylhKS0vklPCwf3wTCYnMY04b6sXnkQjIXdtjYSTHaM=,tag:5baKRHSI7xk36UDc8eZCmw==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-05-30T09:57:56Z"
mac: ENC[AES256_GCM,data:2xi703zPYqw0kDNNbEaFXRqzLxtTCDE8lhg39IrfLSKhXa+LJSts5NsVKIvA/3PbHx/07CsyUhz1FIAcFbXZ5/+FN8pVVrDtgiKJbuDi/shheY5I7kiuZaP4OUPQhjPGAQFuRa3t+KCRvdk6h+N8B9EBxt9l3u/r4Xf/XChw8DE=,iv:KmwuzHoF/mgS0tfbexVhgAPkvdmRgNNMFSHD5JRcxhg=,tag:C9hI7vNaLBQk8DkP8Hkvuw==,type:str]
pgp:
- created_at: "2024-05-30T09:57:56Z"
enc: |-
-----BEGIN PGP MESSAGE-----
hQIMAz4Gf+0qjwzrAQ/7Bsd2akF+FEUMQeOWMm/t80P22X2tsrAeGnwwrGSpaFLx
uuVOKgN+CxFUuw1VZN0zjZHO95T9zVMVxlGXERUkJ+YbnrWeochAVW2nWF+xSe0A
UFFTihQ22ESNWLTpxHZGiXIcNUUl813spOpki7vbU+o3VRI/vb6+f5DKJ13ZaK0H
Z5wCS36izW58Dupj2bLNP9I9PH4HGe1S4ODl14x3OBPaZ9XDbZ7/3ZsdAp7yCZgq
y2ItKhC2Uqz3ZlXxlLSTilcMw1hPqn91JpHGgqK4AYvs9rBof6BgrQ8CNghDxEnC
mp6m1Rhp9zQl5NhvQ1raKjCJcL5SxV8AGPQ+G1cYvqZ2iwplfWEfRH4ZIexjUqH/
8MkI9NmSlIhSuRivn7C0f82hXKl0ZqcjxC+of5FCgzxHRnM/LAY2SSaqKTHgoynp
ZpvxrSao3jrdzqAkDGiXjaxdmnelePf4ckynlsnJLjsEH+M4zjnoTR2BdMcuo6Lt
/MTSB3jxR7tNaR+5SOf19zomXtHqT6wnhjFuoJU+r6QhSbmOQdVT/m6vLVlHGCy7
EiWnDVzhQh/JYM0OUaLkAmP0kEHGp5HSCCfOeY7CYfqxdrCHAkE8JR5wjoxqBb2n
C3B51Afy56/lMR1r3+Gl9cHmt8/QtVyyY2ZKgDXl/xPohjXI0DLlF8Dm+fTsO2PU
aAEJAhA0NP06Yh9Q/li6f0sOEHG40tkt49vMxAb4FVo0juJ5mOECauY68+HKTVNu
0f/DdNOFWAkXlyixt0S2fscERSH9suAs8UAG8UwM2XeZWo+tQMotd7zQiCUz3u1r
fsIMjT8O9HTR
=TUy/
-----END PGP MESSAGE-----
fp: 46FAA8106554E4BAC648A9C8DAC3C1A5974CE5A1
encrypted_regex: ^(data|stringData|consumerKey|email|groupName|applicationKey|host|hosts|addresses|server|configLogicalBackup|channel|monica|mariadb|redis)$
version: 3.8.1
22 changes: 2 additions & 20 deletions high/apps/monica/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ image:
replicaCount: 1

ingress:
enabled: true
# className: nginx
enabled: false
className: treafik
annotations:
# nginx.ingress.kubernetes.io/proxy-body-size: 4G
kubernetes.io/tls-acme: "true"
Expand All @@ -17,28 +17,20 @@ ingress:
pathType: Prefix

monica:
host: monica.k.zroot.org
existingSecret:
enabled: false
storagedir: /var/www/html/storage
mail:
enabled: false
fromAddress: user
replyToAddress: user
smtp:
host: domain.com
encryption: tls
port: 465
username: user
password: pass

##
## Internal database configuration (SQLite)
##
internalDatabase:
enabled: false
## Database fullpath file
name: /var/www/html/database/monica.sqlite


##
Expand All @@ -54,11 +46,6 @@ mariadb:
## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters
enabled: true

auth:
database: monica
username: monica-XSAc6uTM2tJQdy
password: iHXkP5qM7MRVMR

architecture: standalone

## Enable persistence using Persistent Volume Claims
Expand All @@ -77,11 +64,6 @@ mariadb:
##
redis:
enabled: true
auth:
enabled: true
password: iHXkP5qM7MRVMR
# existingSecret
# existingSecretPasswordKey

##
## Meilisearch chart configuration
Expand Down
16 changes: 16 additions & 0 deletions high/envs/astrid/monicahq.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: monicahq
namespace: flux-system
spec:
interval: 10m0s
decryption:
provider: sops
secretRef:
name: sops-gpg
sourceRef:
kind: GitRepository
name: flux-system
path: ./high/apps/monica
prune: true
Binary file added high/keys/astrid/sops.priv.asc.age
Binary file not shown.
51 changes: 51 additions & 0 deletions high/keys/astrid/sops.pub.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGZYTEsBEADi1FgOGiWslb0IBNy3eaEgytNTjFATMXSGDs19xKhi8x/BUyXd
bKQ2fCsAZYx9MhSBhqdz11TT/WcLeqhjxGfq5+4FpYehf3D0jNfQYA21l+idjGpa
P/IkBxpzgrtpkrDXdMgkMwwWjMFpRhvmPsjySqAt0JnRVPTjClN2rLRGiyPffpSW
eILdqw7gLD1Igp5qPAvQIacjgg0/pXCk4PPSR0RGBqAeIZOdszCmZvx+LyY9vqfC
2iY/163Y9D3gSk7OXGk4CIBsRzff4aLStNilReJZtrHh2rRrUX7bp0DzsbPuP+x1
Mnlnc/kqj5OpteV3UDk2GAiifzB7w7YQAIlCorVjk5bC9m9gshJ72LktZZ3kulGP
z3bGl78nG2s01Sa7IVQ0ERKwgXYwgCNVOL5VDHe9MFVmG0I7lkbif9r2pYshldic
BpKv4xJzL3yxEdQP9TaNvGXBG18bmHNimLY2VwOOCH1F4gezmQP3ColXUmNLF0KB
AAA9jwJnmFiVFQieowSRUxpcLwjqAuqXy3OVfZJVCQlJX4Td4NPLuicBpewNMdAF
ql5SQdaV9cdu9SDXS/Dg1/s69818XprJaABeAod8b55CD/lgmSXfEZLXlJnqc3aL
mp9jsUB0omiUXaZD/OMX35Z9V0bkE5hky2DQlJ8P4G38t5D2NvO+eHF96wARAQAB
tBlhc3RyaWQgPGFz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s/veBVx6oSAfUZ6mu2fww3EX6jURBnmykew7PNSzKZUiON
BiReSlj2X7aNdRA4nDv3gQ7GbcBV2okgK8g6H8qZWo3C6+4AHz8XhodDngYaqPgW
I8LT74XsdlMWAL0ztLg7GAQty3h0OOoPuxRIQbqRaTz9Dkp2nSEw7Q==
=CPM/
-----END PGP PUBLIC KEY BLOCK-----
Binary file added high/keys/astrid/sops.secret.yaml.age
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1ca0394

Please sign in to comment.