Skip to content

Commit

Permalink
Add davio
Browse files Browse the repository at this point in the history
Signed-off-by: David Young <[email protected]>
  • Loading branch information
funkypenguin committed May 25, 2024
1 parent c475918 commit d15976f
Show file tree
Hide file tree
Showing 8 changed files with 167 additions and 6 deletions.
9 changes: 7 additions & 2 deletions charts/other/myprecious/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.32784
version: 1.0.32786

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down Expand Up @@ -510,7 +510,12 @@ dependencies:
condition: jackettio.enabled
version: ~0.2.1
repository: oci://ghcr.io/elfhosted/charts
alias: jackettio
alias: jackettio
- name: app-template
condition: davio.enabled
version: ~0.2.1
repository: oci://ghcr.io/elfhosted/charts
alias: davio
- name: app-template
condition: stremioserver.enabled
version: ~0.2.1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{ if .Values.davio.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: davio-env
data:
TRUST_PROXY: "true"
DATA_FOLDER: /config
WELCOME_MESSAGE: |
![](https://elfhosted.com/images/logo.png)
This is a subscription instance of [Davio](https://github.com/arvida42/davio) for {{ .Release.Name }} - Enjoy!
Possible interesting use-cases for Davio:
* 📺 Stream your WebDAV-compatible Debrid content via Stremio
* 🧠 Stream your ElfHosted-managed media from [ElfStorage](https://store.elfhosted.com/product/elfstorage) via Stremio
* 🤯 [Mount any rclone-compatible storage](https://store.elfhosted.com/product-category/storage) (*Dropbox, Google Drive, SSH, SMB, etc*), expose it via [WebDAV](https://store.elfhosted.com/product/webdav-access-plus), and stream it with Stremio!
ADDON_ID: {{ .Release.Name }}-davio.elfhosted.com
ADDON_NAME: {{ .Release.Name }} ElfHosted Davio |
ADDON_ICON: https://elfhosted.com/images/davio.png
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ data:
- type: email
{{ end }}
{{ if .Values.davio.enabled }}
- name: davio
group: consume-media
url: "http://davio:4000"
interval: 5m
conditions:
- "[STATUS] == 200"
alerts:
- type: email
{{ end }}
{{ if .Values.annatar.enabled }}
- name: annatar
group: consume-media
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,15 @@ data:
href: https://{{ .Release.Name }}-jackettio.elfhosted.com
description: Stremio Addon supporting private trackers
siteMonitor: http://jackettio:4000
{{ end }}
{{ end }}
{{ if .Values.davio.enabled }}
- Davio:
icon: webdav.png
href: https://{{ .Release.Name }}-davio.elfhosted.com
description: Stremio Addon to serve your WebDAV content
siteMonitor: http://davio:4000
{{ end }}
{{ if .Values.annatar.enabled }}
- Annatar:
Expand Down Expand Up @@ -733,7 +741,7 @@ data:
{{ if .Values.rclonemountalldebridpia.enabled }}
- AllDebrid:
icon: real-debrid.png
icon: webdav.png
href: https://{{ .Release.Name }}-alldebrid.elfhosted.com/
description: Manage AllDebrid files
siteMonitor: http://alldebrid-webdav:9999
Expand Down Expand Up @@ -946,15 +954,15 @@ data:
{{ if .Values.webdav.enabled }}
- WebDAV:
icon: rclone.png
icon: webdav.png
href: https://{{ .Release.Name }}-webdav.elfhosted.com
description: Your WebDAV endpoint for migration
siteMonitor: http://rclonebrowser:5574
{{ end }}
{{ if .Values.webdavplus.enabled }}
- WebDAV Plus:
icon: rclone.png
icon: webdav.png
href: https://{{ .Release.Name }}-webdav-plus.elfhosted.com
description: Your WebDAV Plus endpoint for migration at 150Mbps
siteMonitor: http://webdav-plus:5574
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,16 @@ data:
target: "_blank" # optional html tag target attribute
{{ end }}
{{ if .Values.davio.enabled }}
- name: "Davio"
logo: "assets/png/webdav.png"
subtitle: "Stremio Addon to stream your WebDAV content"
tag: "protected"
tagstyle: "is-success"
url: "https://{{ .Release.Name }}-davio.elfhosted.com"
target: "_blank" # optional html tag target attribute
{{ end }}
{{ if .Values.annatar.enabled }}
- name: "Annatar"
logo: "assets/png/annatar.png"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{ if .Values.davio.enabled }}
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: {{ .Release.Name }}-davio.elfhosted.com
spec:
routes:
- match: Host(`{{ .Release.Name }}-davio.elfhosted.com`)
kind: Rule
services:
- name: davio
kind: Service
port: 4000
middlewares:
- name: chain-hosted-stremio-addon
namespace: traefik
- match: Host(`{{ .Release.Name }}-davio.elfhosted.com`) && PathPrefix(`/configure/`)
kind: Rule
services:
- name: davio
kind: Service
port: 4000
middlewares:
- name: {{ .Release.Name }}-traefik-forward-auth
- name: chain-hosted-stremio-addon
namespace: traefik
{{ end }}
20 changes: 20 additions & 0 deletions charts/other/myprecious/templates/services/service-davio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ if .Values.davio.enabled }}
apiVersion: v1
kind: Service
metadata:
name: davio
labels:
app.kubernetes.io/name: davio
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
spec:
type: ClusterIP
ports:
- port: 4000
targetPort: 4000
protocol: TCP
name: http
selector:
app.kubernetes.io/name: davio
app.kubernetes.io/instance: {{ .Release.Name }}
{{ end }}
57 changes: 57 additions & 0 deletions charts/other/myprecious/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10677,6 +10677,63 @@ jackettio:
name: elfbot-jackettio
optional: true

davio:
enabled: false
image:
repository: ghcr.io/geek-cookbook/davio
tag: v1.0.0@sha256:9a45e792fb1c6f17396cc0fcb13b795fe4727732d87b26cd285aea6439b2ed70
priorityClassName: tenant-normal
controller:
annotations:
configmap.reloader.stakater.com/reload: "elfbot-all,elfbot-davio,davio-env"
secret.reloader.stakater.com/reload: "davio-env"
strategy:
rollingUpdate:
unavailable: 1
securityContext:
seccompProfile:
type: RuntimeDefault
readOnlyRootFilesystem: true
podSecurityContext:
seccompProfile:
type: RuntimeDefault
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: "OnRootMismatch"
automountServiceAccountToken: false
persistence:
tmp: *tmp
config:
enabled: true
type: custom
mountPath: /config
volumeSpec: *volumespec_ephemeral_volume_1g
resources:
requests:
cpu: 10m
memory: 512Mi
limits:
cpu: 1
memory: 1Gi
ingress:
main:
enabled: false
service:
main:
enabled: true # necessary for probes
ports:
http:
port: 4000
envFrom:
- configMapRef:
name: davio-env
- secretRef:
name: davio-env
- configMapRef:
name: elfbot-davio
optional: true

mediafusion:
enabled: false
image:
Expand Down

0 comments on commit d15976f

Please sign in to comment.