2025-04-13 15:58:11 +01:00
|
|
|
image:
|
2025-04-27 12:28:15 +00:00
|
|
|
tag: 2.15.3
|
2025-04-13 15:58:11 +01:00
|
|
|
initContainers:
|
|
|
|
install-tesseract-langs:
|
|
|
|
image: ghcr.io/paperless-ngx/paperless-ngx:2.15.1
|
|
|
|
command: ["/bin/sh", "-c"]
|
|
|
|
args:
|
2025-04-28 17:35:09 +00:00
|
|
|
- apt-get update && apt-get install -y --reinstall tesseract-ocr-rus tesseract-ocr-jpn tesseract-ocr-chi-sim tesseract-ocr-eng tesseract-ocr-ell && cp -v -r /usr/share/tesseract-ocr/5/tessdata/* /custom-tessdata/
|
2025-04-13 15:58:11 +01:00
|
|
|
volumeMounts:
|
|
|
|
- name: tessdata
|
|
|
|
mountPath: /custom-tessdata
|
|
|
|
nodeSelector:
|
2025-04-16 16:46:02 +03:00
|
|
|
kubernetes.io/hostname: nas.homenet
|
2025-04-13 15:58:11 +01:00
|
|
|
env:
|
|
|
|
TZ: Asia/Nicosia
|
|
|
|
PAPERLESS_URL: https://docs.hexor.cy
|
|
|
|
PAPERLESS_ALLOWED_HOSTS: docs.hexor.cy
|
2025-04-28 17:28:24 +00:00
|
|
|
PAPERLESS_REDIS: redis://:NOTSECUREBUTMAYBELOCAL@paperless-ngx-redis-master
|
2025-04-13 15:58:11 +01:00
|
|
|
PAPERLESS_CSRF_TRUSTED_ORIGINS: https://idm.hexor.cy
|
2025-04-28 17:38:19 +00:00
|
|
|
PAPERLESS_OCR_LANGUAGE: "eng+rus+ell+jpn+chi_sim"
|
2025-04-13 15:58:11 +01:00
|
|
|
TESSDATA_PREFIX: /custom-tessdata
|
2025-05-02 12:24:13 +00:00
|
|
|
PAPERLESS_TIKA_ENABLED: "1"
|
|
|
|
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: "http://apache-tika:3000"
|
|
|
|
PAPERLESS_TIKA_ENDPOINT: "http://gotenberg:9998"
|
2025-04-13 15:58:11 +01:00
|
|
|
PAPERLESS_DBENGINE: postgresql
|
|
|
|
PAPERLESS_DBHOST: psql-nas.psql.svc
|
|
|
|
PAPERLESS_DBPORT: "5432"
|
|
|
|
PAPERLESS_DBNAME: paperless
|
|
|
|
PAPERLESS_DBUSER:
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: postgres-creds
|
|
|
|
key: psql_user
|
|
|
|
PAPERLESS_DBPASS:
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: postgres-creds
|
|
|
|
key: psql_pass
|
|
|
|
PAPERLESS_ACCOUNT_AUTO_CREATION: "true"
|
|
|
|
PAPERLESS_ACCOUNT_SUPERUSER_GROUP: PaperlessAdmins
|
|
|
|
PAPERLESS_ACCOUNT_SOCIAL_OIDC_GROUPS_CLAIM: groups
|
|
|
|
PAPERLESS_DISABLE_REGULAR_LOGIN: "true"
|
|
|
|
PAPERLESS_APPS: allauth.socialaccount.providers.openid_connect
|
|
|
|
PAPERLESS_SOCIALACCOUNT_PROVIDERS:
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: postgres-creds
|
|
|
|
key: oauth_config
|
|
|
|
ingress:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
ingressClassName: traefik
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
|
|
traefik.ingress.kubernetes.io/router.middlewares: kube-system-https-redirect@kubernetescrd
|
|
|
|
hosts:
|
|
|
|
- host: docs.hexor.cy
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- '*.hexor.cy'
|
|
|
|
secretName: docs-tls
|
|
|
|
persistence:
|
|
|
|
tessdata:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
|
|
|
mountPath: /custom-tessdata
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/storage/Storage/k8s/paperless/data
|
|
|
|
globalMounts:
|
|
|
|
- path: /usr/src/paperless/data
|
|
|
|
media:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/storage/Storage/k8s/paperless/media
|
|
|
|
globalMounts:
|
|
|
|
- path: /usr/src/paperless/media
|
|
|
|
export:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/storage/Storage/k8s/paperless/export
|
|
|
|
globalMounts:
|
|
|
|
- path: /usr/src/paperless/export
|
|
|
|
consume:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/storage/Storage/k8s/paperless/consume
|
|
|
|
globalMounts:
|
|
|
|
- path: /usr/src/paperless/consume
|
2025-04-28 17:18:46 +00:00
|
|
|
redis:
|
|
|
|
enabled: true
|
|
|
|
master:
|
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/hostname: nas.homenet
|
|
|
|
replica:
|
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/hostname: nas.homenet
|
2025-04-28 17:28:24 +00:00
|
|
|
global:
|
|
|
|
redis:
|
|
|
|
password: "NOTSECUREBUTMAYBELOCAL"
|
2025-04-13 15:58:11 +01:00
|
|
|
postgresql:
|
|
|
|
enabled: false
|
|
|
|
mariadb:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
|