CrystalNET-org / helm-paperless-ngx

helm chart to deploy paperless-ngx with added ftpd functionality
2 stars 0 forks source link

Support setting any PAPERLESS_ env variables in values.yaml #28

Open andi0b opened 5 months ago

andi0b commented 5 months ago

Thanks for this chart, looks very nice!

I would like to set up paperless-ngx with my existing Postgres database and therefore I would need to load the database settings from external configmaps and secrets.

something like:

# values.yaml
paperless:
  env:
    - name: PAPERLESS_DBENGINE
      value: "postgres"
    - name: PAPERLESS_DBHOST
      valueFrom:
         configMapKeyRef:
           name: bring-your-own-db-config
           key: hostname
    - name: PAPERLESS_DBPASS
      valueFrom:
         secretKeyRef:
           name: bring-your-own-db-secret
           key: pass

For other advanced configuration options this would also be a big plus, there are a lot, and I think this chart doesn't need to include them all: https://docs.paperless-ngx.com/configuration/

psych0d0g commented 4 months ago

im contemplating here, for external pgsql i would rather implement the same solution as for mysql, so you could set external database connection information through the config datastructure when not using the subchart's pgsql. and i would also personally prefer implementing any required env vars in that structure to prevent having to define config options in diffrent areas of the chart's values. maybe within some kind of dynamic "advanced" settings array From a user perspective that keeps it more simple.

andi0b commented 4 months ago

I went with this chart: https://artifacthub.io/packages/helm/pascaliske/paperless

it’s a bit less sophisticated but allows setting all the things I need without patching the Helm output.

psych0d0g commented 4 months ago

happy that you found a chart which works for you, altough this has nothing to do with the topic of this issue, please stay on topic here :)