⬆️ 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_FORCE_PATH_STYLE: "true"
AWS_S3_UPLOAD_BUCKET_NAME: outline AWS_S3_UPLOAD_BUCKET_NAME: outline
AWS_S3_UPLOAD_BUCKET_URL: "https://truenas.${SECRET_DOMAIN}:51515" AWS_S3_UPLOAD_BUCKET_URL: "https://truenas.${SECRET_DOMAIN}:51515"
AWS_S3_UPLOAD_MAX_SIZE: "26214400"
ENABLE_UPDATES: "false" ENABLE_UPDATES: "false"
FILE_STORAGE_UPLOAD_MAX_SIZE: "26214400"
OIDC_AUTH_URI: "https://auth.${SECRET_CLUSTER_DOMAIN}/api/oidc/authorization" OIDC_AUTH_URI: "https://auth.${SECRET_CLUSTER_DOMAIN}/api/oidc/authorization"
OIDC_CLIENT_ID: outline OIDC_CLIENT_ID: outline
OIDC_CLIENT_SECRET: "${SECRET_OUTLINE_OAUTH_CLIENT_SECRET}" OIDC_CLIENT_SECRET: "${SECRET_OUTLINE_OAUTH_CLIENT_SECRET}"

View File

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