add support for office docs to paperless-ngx
This commit is contained in:
12
cluster/apps/gotenberg/gotenberg-svc.yml
Normal file
12
cluster/apps/gotenberg/gotenberg-svc.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: gotenberg-service
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: gotenberg
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 3000
|
||||||
|
targetPort: 3000
|
||||||
30
cluster/apps/gotenberg/gotenberg.yml
Normal file
30
cluster/apps/gotenberg/gotenberg.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: gotenberg
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: gotenberg
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: gotenberg
|
||||||
|
spec:
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1001
|
||||||
|
containers:
|
||||||
|
- name: gotenberg
|
||||||
|
image: gotenberg/gotenberg:8.22
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
gotenberg --chromium-disable-javascript=true --chromium-allow-list=file:///tmp/.*
|
||||||
|
ports:
|
||||||
|
- containerPort: 3000
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
privileged: false
|
||||||
@@ -41,6 +41,12 @@ spec:
|
|||||||
value: "https://ngx.akshun-lab.cc"
|
value: "https://ngx.akshun-lab.cc"
|
||||||
- name: PAPERLESS_TIME_ZONE
|
- name: PAPERLESS_TIME_ZONE
|
||||||
value: "Asia/Kolkata"
|
value: "Asia/Kolkata"
|
||||||
|
- name: PAPERLESS_TIKA_ENABLED
|
||||||
|
value: "1"
|
||||||
|
- name: PAPERLESS_TIKA_ENDPOINT
|
||||||
|
value: "http://tika-service:9998"
|
||||||
|
- name: PAPERLESS_TIKA_GOTENBERG_ENDPOINT
|
||||||
|
value: "http://gotenberg-service:3000"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /usr/src/paperless/data
|
mountPath: /usr/src/paperless/data
|
||||||
|
|||||||
12
cluster/apps/tika/tika-service.yml
Normal file
12
cluster/apps/tika/tika-service.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: tika-service
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: tika
|
||||||
|
ports:
|
||||||
|
- port: 9998
|
||||||
|
targetPort: 9998
|
||||||
19
cluster/apps/tika/tika.yml
Normal file
19
cluster/apps/tika/tika.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: tika
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: tika
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tika
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: tika
|
||||||
|
image: apache/tika:3.2.3.0
|
||||||
|
ports:
|
||||||
|
- containerPort: 9998
|
||||||
Reference in New Issue
Block a user