scanservjs: Deploy scanserv-js

*scanserv-js* is a web-based front-end for SANE.  It allows scanning
documents from a browser.

Using the `config.local.js` file, we implement the `afterScan` hook to
automatically upload scanned files to *paperless-ngx* using its REST
API.
This commit is contained in:
2023-04-19 21:29:14 -05:00
parent 8a966a7ffb
commit 1c31c01688
7 changed files with 300 additions and 0 deletions

36
scanservjs/ingress.yaml Normal file
View File

@@ -0,0 +1,36 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
labels:
app.kubernetes.io/name: scanservjs
app.kubernetes.io/component: scanservjs
app.kubernetes.io/instance: scanservjs
app.kubernetes.io/part-of: scanservjs
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: '0'
nginx.ingress.kubernetes.io/auth-method: GET
nginx.ingress.kubernetes.io/auth-url: http://authelia.authelia.svc.cluster.local:9091/api/verify
nginx.ingress.kubernetes.io/auth-signin: https://auth.pyrocufflink.blue/?rm=$request_method
nginx.ingress.kubernetes.io/auth-response-headers: Remote-User,Remote-Name,Remote-Groups,Remote-Email
nginx.ingress.kubernetes.io/auth-snippet: |
proxy_set_header X-Forwarded-Method $request_method;
name: scanservjs
namespace: scanservjs
spec:
ingressClassName: nginx
tls:
- hosts:
- scan.pyrocufflink.blue
rules:
- host: scan.pyrocufflink.blue
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: scanservjs
port:
name: http