⬆️ paperless app-template v2

This commit is contained in:
auricom
2023-11-02 21:13:51 +01:00
parent 4a41de384a
commit 977c89eca2
2 changed files with 55 additions and 40 deletions

View File

@@ -55,8 +55,8 @@ spec:
AWS_S3_FORCE_PATH_STYLE: "true"
AWS_S3_UPLOAD_BUCKET_NAME: outline
AWS_S3_UPLOAD_BUCKET_URL: "https://truenas.${SECRET_DOMAIN}:51515"
AWS_S3_UPLOAD_MAX_SIZE: "26214400"
ENABLE_UPDATES: "false"
FILE_STORAGE_UPLOAD_MAX_SIZE: "26214400"
OIDC_AUTH_URI: "https://auth.${SECRET_CLUSTER_DOMAIN}/api/oidc/authorization"
OIDC_CLIENT_ID: outline
OIDC_CLIENT_SECRET: "${SECRET_OUTLINE_OAUTH_CLIENT_SECRET}"

View File

@@ -10,7 +10,7 @@ spec:
chart:
spec:
chart: app-template
version: 1.5.1
version: 2.0.3
sourceRef:
kind: HelmRepository
name: bjw-s
@@ -29,13 +29,22 @@ spec:
dependsOn:
- name: paperless-redis
values:
controllers:
main:
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
initContainers:
01-init-db:
image: ghcr.io/auricom/postgres-init:15.4
imagePullPolicy: IfNotPresent
init-db:
image:
repository: ghcr.io/auricom/postgres-init
tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0
pullPolicy: IfNotPresent
envFrom: &envFrom
- secretRef:
name: &secret paperless-secret
name: paperless-secret
containers:
main:
image:
repository: ghcr.io/paperless-ngx/paperless-ngx
tag: 1.17.4
@@ -55,6 +64,12 @@ spec:
PAPERLESS_TIME_ZONE: "Europe/Paris"
PAPERLESS_URL: https://paperless.${SECRET_CLUSTER_DOMAIN}
envFrom: *envFrom
resources:
requests:
cpu: 25m
memory: 3Gi
limits:
memory: 7Gi
service:
main:
ports:
@@ -63,7 +78,7 @@ spec:
ingress:
main:
enabled: true
ingressClassName: "nginx"
className: "nginx"
annotations:
external-dns.home.arpa/enabled: "true"
hajimari.io/icon: mdi:barcode-scan
@@ -71,38 +86,38 @@ spec:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
pathType: Prefix
service:
name: main
port: http
tls:
- hosts:
- *host
persistence:
data:
enabled: true
mountPath: /usr/src/paperless/data
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/shared-documents/paperless/data
globalMounts:
- path: /usr/src/paperless/data
media:
enabled: true
mountPath: /usr/src/paperless/media
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/shared-documents/paperless/media
globalMounts:
- path: /usr/src/paperless/media
consume:
enabled: true
mountPath: /usr/src/paperless/consume
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/shared-documents/paperless/watch
globalMounts:
- path: /usr/src/paperless/consume
export:
enabled: true
mountPath: /usr/src/paperless/export
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/shared-documents/paperless/export
resources:
requests:
cpu: 25m
memory: 3Gi
limits:
memory: 7Gi
globalMounts:
- path: /usr/src/paperless/export