fix(fireshare): cleanup (#3342)
* fix(fireshare): cleanup * remote enabled * try http protocol * update UI
This commit is contained in:
parent
08db7259d7
commit
24ecfc2974
|
@ -1,26 +1,17 @@
|
||||||
annotations:
|
|
||||||
truecharts.org/SCALE-support: "true"
|
|
||||||
truecharts.org/catagories: |
|
|
||||||
- Other
|
|
||||||
- MediaServer-Video
|
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: "latest"
|
appVersion: "latest"
|
||||||
|
kubeVersion: ">=1.16.0-0"
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://library-charts.truecharts.org
|
repository: https://library-charts.truecharts.org
|
||||||
version: 10.4.8
|
version: 10.4.8
|
||||||
|
description: "Share your game clips, videos, or other media via unique links."
|
||||||
|
version: 0.0.15
|
||||||
deprecated: false
|
deprecated: false
|
||||||
description:
|
|
||||||
"Fireshare allows you to easily share your media whether that be game\
|
|
||||||
\ clips, screen records, or movies through a unique publically accessible link.\
|
|
||||||
\ \r\n"
|
|
||||||
home: https://github.com/truecharts/charts/tree/master/charts/incubator/fireshare
|
home: https://github.com/truecharts/charts/tree/master/charts/incubator/fireshare
|
||||||
icon: https://truecharts.org/img/chart-icons/fireshare.png
|
icon: https://truecharts.org/img/chart-icons/test.png
|
||||||
keywords:
|
keywords:
|
||||||
- fireshare
|
- fireshare
|
||||||
- Other
|
|
||||||
- MediaServer-Video
|
|
||||||
kubeVersion: ">=1.16.0-0"
|
|
||||||
maintainers:
|
maintainers:
|
||||||
- email: info@truecharts.org
|
- email: info@truecharts.org
|
||||||
name: TrueCharts
|
name: TrueCharts
|
||||||
|
@ -30,4 +21,7 @@ sources:
|
||||||
- https://github.com/ShaneIsrael/fireshare
|
- https://github.com/ShaneIsrael/fireshare
|
||||||
- https://hub.docker.com/r/shaneisrael/fireshare
|
- https://hub.docker.com/r/shaneisrael/fireshare
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.14
|
annotations:
|
||||||
|
truecharts.org/SCALE-support: "true"
|
||||||
|
truecharts.org/catagories: |
|
||||||
|
- media
|
||||||
|
|
|
@ -24,7 +24,6 @@ questions:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
# Include{global}
|
# Include{global}
|
||||||
|
|
||||||
- variable: controller
|
- variable: controller
|
||||||
group: "Controller"
|
group: "Controller"
|
||||||
label: ""
|
label: ""
|
||||||
|
@ -75,7 +74,19 @@ questions:
|
||||||
- value: "OnDelete"
|
- value: "OnDelete"
|
||||||
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
||||||
# Include{controllerExpert}
|
# Include{controllerExpert}
|
||||||
|
- variable: secretEnv
|
||||||
|
group: "Container Configuration"
|
||||||
|
label: "Image Secrets"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: ADMIN_PASSWORD
|
||||||
|
label: 'ADMIN_PASSWORD'
|
||||||
|
description: "The admin account password"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
- variable: env
|
- variable: env
|
||||||
group: "Container Configuration"
|
group: "Container Configuration"
|
||||||
label: "Image Environment"
|
label: "Image Environment"
|
||||||
|
@ -83,22 +94,13 @@ questions:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
|
|
||||||
- variable: ADMIN_PASSWORD
|
|
||||||
label: 'ADMIN_PASSWORD'
|
|
||||||
description: "The admin account password"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
default: "admin"
|
|
||||||
- variable: MINUTES_BETWEEN_VIDEO_SCANS
|
- variable: MINUTES_BETWEEN_VIDEO_SCANS
|
||||||
label: 'MINUTES_BETWEEN_VIDEO_SCANS'
|
label: 'MINUTES_BETWEEN_VIDEO_SCANS'
|
||||||
description: "How often in minutes Fireshare will scan for new videos"
|
description: "How often in minutes Fireshare will scan for new videos"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: int
|
||||||
default: "5"
|
default: 5
|
||||||
|
|
||||||
# Include{containerConfig}
|
# Include{containerConfig}
|
||||||
|
|
||||||
- variable: service
|
- variable: service
|
||||||
group: "Networking and Services"
|
group: "Networking and Services"
|
||||||
label: "Configure Service(s)"
|
label: "Configure Service(s)"
|
||||||
|
@ -125,7 +127,7 @@ questions:
|
||||||
description: "This port exposes the container port on the service"
|
description: "This port exposes the container port on the service"
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 8080
|
default: 10287
|
||||||
required: true
|
required: true
|
||||||
- variable: advanced
|
- variable: advanced
|
||||||
label: "Show Advanced settings"
|
label: "Show Advanced settings"
|
||||||
|
@ -138,7 +140,7 @@ questions:
|
||||||
label: "Port Type"
|
label: "Port Type"
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
default: TCP
|
default: HTTP
|
||||||
enum:
|
enum:
|
||||||
- value: HTTP
|
- value: HTTP
|
||||||
description: "HTTP"
|
description: "HTTP"
|
||||||
|
@ -161,9 +163,6 @@ questions:
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 80
|
default: 80
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- variable: serviceexpert
|
- variable: serviceexpert
|
||||||
group: "Networking and Services"
|
group: "Networking and Services"
|
||||||
label: "Show Expert Config"
|
label: "Show Expert Config"
|
||||||
|
@ -178,11 +177,8 @@ questions:
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
# Include{serviceExpert}
|
# Include{serviceExpert}
|
||||||
|
|
||||||
# Include{serviceList}
|
# Include{serviceList}
|
||||||
|
|
||||||
- variable: persistence
|
- variable: persistence
|
||||||
label: "Integrated Persistent Storage"
|
label: "Integrated Persistent Storage"
|
||||||
description: "Integrated Persistent Storage"
|
description: "Integrated Persistent Storage"
|
||||||
|
@ -191,7 +187,6 @@ questions:
|
||||||
additional_attrs: true
|
additional_attrs: true
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
|
|
||||||
- variable: data
|
- variable: data
|
||||||
label: "data Storage"
|
label: "data Storage"
|
||||||
description: "Container Path data"
|
description: "Container Path data"
|
||||||
|
@ -219,11 +214,7 @@ questions:
|
||||||
attrs:
|
attrs:
|
||||||
# Include{persistenceBasic}
|
# Include{persistenceBasic}
|
||||||
# Include{persistenceAdvanced}
|
# Include{persistenceAdvanced}
|
||||||
|
|
||||||
|
|
||||||
# Include{persistenceList}
|
# Include{persistenceList}
|
||||||
|
|
||||||
|
|
||||||
- variable: ingress
|
- variable: ingress
|
||||||
label: ""
|
label: ""
|
||||||
group: "Ingress"
|
group: "Ingress"
|
||||||
|
@ -238,17 +229,11 @@ questions:
|
||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
# Include{ingressDefault}
|
# Include{ingressDefault}
|
||||||
|
|
||||||
# Include{ingressTLS}
|
# Include{ingressTLS}
|
||||||
|
|
||||||
# Include{ingressTraefik}
|
# Include{ingressTraefik}
|
||||||
|
|
||||||
# Include{ingressExpert}
|
# Include{ingressExpert}
|
||||||
|
|
||||||
# Include{ingressList}
|
# Include{ingressList}
|
||||||
|
|
||||||
# Include{security}
|
# Include{security}
|
||||||
|
|
||||||
- variable: advancedSecurity
|
- variable: advancedSecurity
|
||||||
label: "Show Advanced Security Settings"
|
label: "Show Advanced Security Settings"
|
||||||
group: "Security and Permissions"
|
group: "Security and Permissions"
|
||||||
|
@ -284,7 +269,6 @@ questions:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
# Include{securityContextAdvanced}
|
# Include{securityContextAdvanced}
|
||||||
|
|
||||||
- variable: podSecurityContext
|
- variable: podSecurityContext
|
||||||
group: "Security and Permissions"
|
group: "Security and Permissions"
|
||||||
label: "Pod Security Context"
|
label: "Pod Security Context"
|
||||||
|
@ -311,10 +295,6 @@ questions:
|
||||||
type: int
|
type: int
|
||||||
default: 568
|
default: 568
|
||||||
# Include{podSecurityContextAdvanced}
|
# Include{podSecurityContextAdvanced}
|
||||||
|
|
||||||
|
|
||||||
# Include{resources}
|
# Include{resources}
|
||||||
|
|
||||||
# Include{advanced}
|
# Include{advanced}
|
||||||
|
|
||||||
# Include{addons}
|
# Include{addons}
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{{/* Define the secrets */}}
|
||||||
|
{{- define "fireshare.secrets" -}}
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
type: Opaque
|
||||||
|
metadata:
|
||||||
|
name: fireshare-secrets
|
||||||
|
{{- $fireshareprevious := lookup "v1" "Secret" .Release.Namespace "fireshare-secrets" }}
|
||||||
|
{{- $secret_key := "" }}
|
||||||
|
data:
|
||||||
|
{{- if $fireshareprevious}}
|
||||||
|
SECRET_KEY: {{ index $fireshareprevious.data "SECRET_KEY" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $secret_key := randAlphaNum 32 }}
|
||||||
|
SECRET_KEY: {{ $secret_key | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end -}}
|
|
@ -1,2 +1,7 @@
|
||||||
|
{{- include "tc.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{/* Render secrets for fireshare */}}
|
||||||
|
{{- include "fireshare.secrets" . }}
|
||||||
|
|
||||||
{{/* Render the templates */}}
|
{{/* Render the templates */}}
|
||||||
{{ include "tc.common.loader.all" . }}
|
{{ include "tc.common.loader.apply" . }}
|
||||||
|
|
|
@ -1,10 +1,34 @@
|
||||||
env:
|
|
||||||
ADMIN_PASSWORD: admin
|
|
||||||
MINUTES_BETWEEN_VIDEO_SCANS: "5"
|
|
||||||
image:
|
image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
repository: tccr.io/truecharts/fireshare
|
repository: tccr.io/truecharts/fireshare
|
||||||
tag: latest@sha256:01a7fe0eb8c31b2c74158912921c15fbe44eec5b67788f77c1182461137dfaa7
|
tag: v1.2.0@sha256:bf9e837e359c4720caf8260674010e5eaab848dc94311e52cb5cae132e7e05a8
|
||||||
|
|
||||||
|
podSecurityContext:
|
||||||
|
runAsGroup: 0
|
||||||
|
runAsUser: 0
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
runAsNonRoot: false
|
||||||
|
|
||||||
|
secretEnv:
|
||||||
|
ADMIN_PASSWORD: "changeme"
|
||||||
|
|
||||||
|
env:
|
||||||
|
SECRET_KEY:
|
||||||
|
secretKeyRef:
|
||||||
|
name: fireshare-secrets
|
||||||
|
key: SECRET_KEY
|
||||||
|
MINUTES_BETWEEN_VIDEO_SCANS: 5
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
main:
|
||||||
|
port: 10287
|
||||||
|
protocol: HTTP
|
||||||
|
targetPort: 80
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
data:
|
data:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -15,18 +39,3 @@ persistence:
|
||||||
videos:
|
videos:
|
||||||
enabled: true
|
enabled: true
|
||||||
mountPath: /videos
|
mountPath: /videos
|
||||||
podSecurityContext:
|
|
||||||
runAsGroup: 0
|
|
||||||
runAsUser: 0
|
|
||||||
securityContext:
|
|
||||||
readOnlyRootFilesystem: false
|
|
||||||
runAsNonRoot: false
|
|
||||||
service:
|
|
||||||
main:
|
|
||||||
enabled: true
|
|
||||||
ports:
|
|
||||||
main:
|
|
||||||
enabled: true
|
|
||||||
port: 8080
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 80
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ words:
|
||||||
- duplicati
|
- duplicati
|
||||||
- dynmap
|
- dynmap
|
||||||
- eptgmk
|
- eptgmk
|
||||||
|
- Fireshare
|
||||||
- gibibyte
|
- gibibyte
|
||||||
- gluster
|
- gluster
|
||||||
- healthcheck
|
- healthcheck
|
||||||
|
|
Loading…
Reference in New Issue