add downloader

This commit is contained in:
2024-12-24 23:42:21 -06:00
parent 0acd2f8b3f
commit fa32496b4a
2 changed files with 70 additions and 0 deletions

View File

@@ -24,6 +24,45 @@ calibre-web-automated:
requests: requests:
cpu: 100m cpu: 100m
memory: 256Mi memory: 256Mi
downloader:
type: deployment
replicas: 1
strategy: Recreate
revisionHistoryLimit: 3
containers:
main:
image:
repository: ghcr.io/calibrain/calibre-web-automated-book-downloader
tag: latest@sha256:3929e131e796f9080cec073f42538736b1513df85f34d38c89664ef98078371a
pullPolicy: IfNotPresent
env:
- name: FLASK_PORT
value: 8084
- name: UID
value: 1000
- name: GID
value: 100
- name: USE_CF_BYPASS
value: true
- name: CLOUDFLARE_PROXY_URL
value: http://localhost:8000
- name: INGEST_DIR
value: /cwa-book-ingest
- name: BOOK_LANGUAGE
value: end
resources:
requests:
cpu: 100m
memory: 256Mi
bypass:
image:
repository: ghcr.io/sarperavci/cloudflarebypassforscraping
tag: latest@sha256:d663ad7fa933f72fdb5b4505d784800dc433d4c475835696632bc23623c1a49c
pullPolicy: IfNotPresent
resources:
requests:
cpu: 100m
memory: 256Mi
serviceAccount: serviceAccount:
create: true create: true
service: service:
@@ -34,6 +73,13 @@ calibre-web-automated:
port: 80 port: 80
targetPort: 8083 targetPort: 8083
protocol: HTTP protocol: HTTP
downloader:
controller: downloader
ports:
http:
port: 8084
targetPort: 8084
protocol: HTTP
ingress: ingress:
tailscale: tailscale:
enabled: true enabled: true
@@ -49,6 +95,20 @@ calibre-web-automated:
tls: tls:
- hosts: - hosts:
- calibre-cl01tl - calibre-cl01tl
tailscale-downloader:
enabled: true
className: tailscale
hosts:
- host: calibre-downloader-cl01tl
paths:
- path: /
pathType: Prefix
service:
name: calibre-web-automated-downloader
port: 8084
tls:
- hosts:
- calibre-downloader-cl01tl
persistence: persistence:
config: config:
storageClass: ceph-block storageClass: ceph-block
@@ -85,3 +145,7 @@ calibre-web-automated:
main: main:
- path: /cwa-book-ingest - path: /cwa-book-ingest
readOnly: false readOnly: false
downloader:
main:
- path: /cwa-book-ingest
readOnly: false

View File

@@ -554,6 +554,12 @@ homepage:
href: https://slskd-cl01tl.boreal-beaufort.ts.net href: https://slskd-cl01tl.boreal-beaufort.ts.net
siteMonitor: http://slskd.slskd:5030 siteMonitor: http://slskd.slskd:5030
statusStyle: dot statusStyle: dot
- CWA Downloader:
icon: sh-calibre.png
description: Calibre-Web-Automated-Book-Downloader
href: https://calibre-downloader-cl01tl.boreal-beaufort.ts.net
siteMonitor: http://calibre-web-automated-downloader.calibre-web-automated:8084
statusStyle: dot
- Tdarr: - Tdarr:
icon: sh-tdarr.png icon: sh-tdarr.png
description: Media transcoding and health checks description: Media transcoding and health checks