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:
36
scanservjs/ingress.yaml
Normal file
36
scanservjs/ingress.yaml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user