mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
[sharry] use a config blockk (#832)
* [sharry] use a config blockk * [sharry] update docs * [sharry] use default config as example * [sharry] comment out nginx annotations * [sharry] fix config indentation and add base-url example * [sharry] add bind configuration
This commit is contained in:
parent
c89748678f
commit
e145839479
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
appVersion: 1.6.0
|
appVersion: 1.6.0
|
||||||
description: Sharry allows to share files with others in a simple way. It is a self-hosted web application. The basic concept is to upload files and get a url back that can then be shared.
|
description: Sharry allows to share files with others in a simple way. It is a self-hosted web application. The basic concept is to upload files and get a url back that can then be shared.
|
||||||
name: sharry
|
name: sharry
|
||||||
version: 2.3.1
|
version: 3.0.0
|
||||||
keywords:
|
keywords:
|
||||||
- file sharing
|
- file sharing
|
||||||
home: https://github.com/k8s-at-home/charts/tree/master/charts/stable/sharry
|
home: https://github.com/k8s-at-home/charts/tree/master/charts/stable/sharry
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# sharry
|
# sharry
|
||||||
|
|
||||||
![Version: 2.2.0](https://img.shields.io/badge/Version-2.2.0-informational?style=flat-square) ![AppVersion: 1.6.0](https://img.shields.io/badge/AppVersion-1.6.0-informational?style=flat-square)
|
![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![AppVersion: 1.6.0](https://img.shields.io/badge/AppVersion-1.6.0-informational?style=flat-square)
|
||||||
|
|
||||||
Sharry allows to share files with others in a simple way. It is a self-hosted web application. The basic concept is to upload files and get a url back that can then be shared.
|
Sharry allows to share files with others in a simple way. It is a self-hosted web application. The basic concept is to upload files and get a url back that can then be shared.
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ Sharry allows to share files with others in a simple way. It is a self-hosted we
|
|||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
| https://library-charts.k8s-at-home.com | common | 2.2.0 |
|
| https://library-charts.k8s-at-home.com | common | 2.3.1 |
|
||||||
|
|
||||||
## TL;DR
|
## TL;DR
|
||||||
|
|
||||||
@ -74,33 +74,16 @@ N/A
|
|||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| additionalVolumeMounts[0].mountPath | string | `"/opt/sharry.conf"` | |
|
|
||||||
| additionalVolumeMounts[0].name | string | `"sharry-config"` | |
|
|
||||||
| additionalVolumeMounts[0].subPath | string | `"sharry.conf"` | |
|
|
||||||
| additionalVolumes[0].configMap.name | string | `"sharry-config"` | |
|
|
||||||
| additionalVolumes[0].name | string | `"sharry-config"` | |
|
|
||||||
| affinity | object | `{}` | Affinity settings for pod assignment of the GUI |
|
|
||||||
| args[0] | string | `"/opt/sharry.conf"` | |
|
| args[0] | string | `"/opt/sharry.conf"` | |
|
||||||
|
| config | object | see URL to default config | Full list of options https://eikek.github.io/sharry/doc/configure |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | |
|
| image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
| image.repository | string | `"eikek0/sharry"` | sharry image |
|
| image.repository | string | `"eikek0/sharry"` | |
|
||||||
| image.tag | string | `"1.6.0"` | sharry image tag |
|
| image.tag | string | `"1.6.0"` | |
|
||||||
| ingress.annotations."nginx.ingress.kubernetes.io/client-body-buffer-size" | string | `"2048m"` | Nginx client Body Buffer Size |
|
| ingress.annotations."nginx.ingress.kubernetes.io/client-body-buffer-size" | string | `"2048m"` | |
|
||||||
| ingress.annotations."nginx.ingress.kubernetes.io/proxy-body-size" | string | `"2048m"` | Nginx Proxy Body Size |
|
| ingress.annotations."nginx.ingress.kubernetes.io/proxy-body-size" | string | `"2048m"` | |
|
||||||
| ingress.annotations."nginx.ingress.kubernetes.io/proxy-buffering" | string | `"off"` | |
|
| ingress.annotations."nginx.ingress.kubernetes.io/proxy-buffering" | string | `"off"` | |
|
||||||
| ingress.enabled | bool | `false` | |
|
| ingress.enabled | bool | `false` | |
|
||||||
| nodeSelector | object | `{}` | Node labels for pod assignment of the GUI |
|
| service.port.port | int | `9090` | |
|
||||||
| podAnnotations | object | `{}` | Pod annotations |
|
|
||||||
| resources | object | `{}` | |
|
|
||||||
| service.port.port | int | `9090` | Kubernetes port where the GUI is exposed |
|
|
||||||
| sharry.baseUrl | string | `"http://localhost:9090"` | This is the base URL this application is deployed to. |
|
|
||||||
| sharry.chunkSize | string | `"512K"` | When storing binary data use chunks of this size. |
|
|
||||||
| sharry.jdbcPassword | string | `""` | jdbc Password |
|
|
||||||
| sharry.jdbcUrl | string | `"jdbc:h2://\"${java.io.tmpdir}\"/sharry-demo.db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE"` | By default a H2 file-based database is configured. You can provide a postgresql or mariadb connection here. |
|
|
||||||
| sharry.jdbcUser | string | `"sa"` | jdbc Username |
|
|
||||||
| sharry.maxSize | string | `"1.5G"` | Maximum size of a share. |
|
|
||||||
| sharry.maxValidity | string | `"365 days"` | Maximum validity for uploads. |
|
|
||||||
| sharry.signup | string | `"open"` | The mode defines if new users can signup or not. It can have three values : open, invite, closed |
|
|
||||||
| tolerations | list | `[]` | Toleration labels for pod assignment of the GUI |
|
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
@ -1 +1,31 @@
|
|||||||
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "common.values.setup" . }}
|
||||||
|
|
||||||
|
{{/* Append the configMap to the additionalVolumes */}}
|
||||||
|
{{- define "sharry.configmap.volume" -}}
|
||||||
|
name: sharry-config
|
||||||
|
configMap:
|
||||||
|
name: {{ template "common.names.fullname" . }}-config
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- $volume := include "sharry.configmap.volume" . | fromYaml -}}
|
||||||
|
{{- if $volume -}}
|
||||||
|
{{- $additionalVolumes := append .Values.additionalVolumes $volume }}
|
||||||
|
{{- $_ := set .Values "additionalVolumes" (deepCopy $additionalVolumes) -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/* Append the configMap volume to the additionalVolumeMounts */}}
|
||||||
|
{{- define "sharry.configmap.volumeMount" -}}
|
||||||
|
name: sharry-config
|
||||||
|
mountPath: /opt/sharry.conf
|
||||||
|
subPath: sharry.conf
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- $volumeMount := include "sharry.configmap.volumeMount" . | fromYaml -}}
|
||||||
|
{{- if $volumeMount -}}
|
||||||
|
{{- $additionalVolumeMounts := append .Values.additionalVolumeMounts $volumeMount }}
|
||||||
|
{{- $_ := set .Values "additionalVolumeMounts" (deepCopy $additionalVolumeMounts) -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
{{ include "common.all" . }}
|
{{ include "common.all" . }}
|
||||||
|
@ -1,91 +1,9 @@
|
|||||||
|
|
||||||
{{/*
|
|
||||||
Sharry Configuration files.
|
|
||||||
*/}}
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: "sharry-config"
|
name: {{ template "common.names.fullname" . }}-config
|
||||||
labels:
|
labels:
|
||||||
{{- include "common.labels" . | nindent 4 }}
|
{{- include "common.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
sharry.conf: |
|
sharry.conf: |
|
||||||
sharry.restserver {
|
{{ .Values.config | indent 4 }}
|
||||||
|
|
||||||
{{- if .Values.sharry.baseUrl }}
|
|
||||||
base-url = "{{ .Values.sharry.baseUrl }}"
|
|
||||||
{{ end }}
|
|
||||||
bind {
|
|
||||||
address = "0.0.0.0"
|
|
||||||
port = {{- if .Values.service.port.port }}{{ .Values.service.port.port }}{{ end }}
|
|
||||||
}
|
|
||||||
|
|
||||||
backend {
|
|
||||||
auth {
|
|
||||||
fixed.enabled = true ## enabled admin:admin access
|
|
||||||
}
|
|
||||||
|
|
||||||
jdbc {
|
|
||||||
url = "{{- if .Values.sharry.jdbcUrl }}{{ .Values.sharry.jdbcUrl }}{{ end }}"
|
|
||||||
user = "{{- if .Values.sharry.jdbcUser }}{{ .Values.sharry.jdbcUser }}{{ end }}"
|
|
||||||
password = "{{- if .Values.sharry.jdbcPassword }}{{ .Values.sharry.jdbcPassword }}{{ end }}"
|
|
||||||
}
|
|
||||||
|
|
||||||
webapp {
|
|
||||||
# This is shown in the top right corner of the web application
|
|
||||||
app-name = "Sharry"
|
|
||||||
|
|
||||||
# The icon next to the app-name. Needs to be an URL to a image.
|
|
||||||
app-icon = ""
|
|
||||||
|
|
||||||
# The login and register page displays a logo image, by default
|
|
||||||
# the Sharry logo. This can be changed here. It needs to be an URL
|
|
||||||
# to an image.
|
|
||||||
app-logo = ""
|
|
||||||
|
|
||||||
# This is markdown that is inserted as the footer on each page in
|
|
||||||
# the ui. If left empty, a link to the project is rendered.
|
|
||||||
app-footer = ""
|
|
||||||
|
|
||||||
# Whether to display the footer on each page in the ui. Set it to
|
|
||||||
# false to hide it.
|
|
||||||
app-footer-visible = true
|
|
||||||
|
|
||||||
# Chunk size used for one request. The server will re-chunk the
|
|
||||||
# stream into smaller chunks. But the client can transfer more in
|
|
||||||
# one requests, resulting in faster uploads.
|
|
||||||
#
|
|
||||||
# You might need to adjust this value depending on your setup. A
|
|
||||||
# higher value usually means faster uploads.
|
|
||||||
chunk-size = "100M"
|
|
||||||
|
|
||||||
# Number of milliseconds the client should wait before doing a new
|
|
||||||
# upload attempt after something failed. The length of the array
|
|
||||||
# denotes the number of retries.
|
|
||||||
retry-delays = [0, 3000, 6000, 12000, 24000, 48000]
|
|
||||||
|
|
||||||
# The login page can display a welcome message that is readable by
|
|
||||||
# everyone. The text is processed as markdown.
|
|
||||||
welcome-message = ""
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
share {
|
|
||||||
# When storing binary data use chunks of this size.
|
|
||||||
chunk-size = "{{- if .Values.sharry.chunkSize }}{{ .Values.sharry.chunkSize }}{{ end }}"
|
|
||||||
|
|
||||||
# Maximum size of a share.
|
|
||||||
max-size = "{{- if .Values.sharry.maxSize }}{{ .Values.sharry.maxSize }}{{ end }}"
|
|
||||||
|
|
||||||
# Maximum validity for uploads
|
|
||||||
max-validity = {{- if .Values.sharry.maxValidity }}{{ .Values.sharry.maxValidity }}{{ end }}
|
|
||||||
}
|
|
||||||
|
|
||||||
signup {
|
|
||||||
mode = "{{- if .Values.sharry.signup }}{{ .Values.sharry.signup }}{{ end }}"
|
|
||||||
invite-time = "3 days"
|
|
||||||
invite-password = "generate-invite"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -1,77 +1,46 @@
|
|||||||
# Default values for sharry.
|
#
|
||||||
|
## IMPORTANT NOTE
|
||||||
|
##
|
||||||
|
## This chart inherits from our common library chart. You can check the default values/options here:
|
||||||
|
## https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
|
||||||
|
##
|
||||||
image:
|
image:
|
||||||
# -- sharry image
|
|
||||||
repository: eikek0/sharry
|
repository: eikek0/sharry
|
||||||
# -- sharry image tag
|
|
||||||
tag: 1.6.0
|
tag: 1.6.0
|
||||||
# sharry image pull policy
|
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
resources: {}
|
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
|
||||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
|
||||||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
|
||||||
# limits:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 128Mi
|
|
||||||
# requests:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 128Mi
|
|
||||||
|
|
||||||
service:
|
service:
|
||||||
port:
|
port:
|
||||||
# -- Kubernetes port where the GUI is exposed
|
|
||||||
port: 9090
|
port: 9090
|
||||||
|
|
||||||
args:
|
args:
|
||||||
- "/opt/sharry.conf"
|
- "/opt/sharry.conf"
|
||||||
|
|
||||||
sharry:
|
|
||||||
# -- This is the base URL this application is deployed to.
|
|
||||||
baseUrl: "http://localhost:9090"
|
|
||||||
# -- By default a H2 file-based database is configured. You can provide a postgresql or mariadb connection here.
|
|
||||||
jdbcUrl: "jdbc:h2://\"${java.io.tmpdir}\"/sharry-demo.db;MODE=PostgreSQL;DATABASE_TO_LOWER=TRUE"
|
|
||||||
# -- jdbc Username
|
|
||||||
jdbcUser: sa
|
|
||||||
# -- jdbc Password
|
|
||||||
jdbcPassword: ""
|
|
||||||
# -- When storing binary data use chunks of this size.
|
|
||||||
chunkSize: "512K"
|
|
||||||
# -- Maximum size of a share.
|
|
||||||
maxSize: "1.5G"
|
|
||||||
# -- Maximum validity for uploads.
|
|
||||||
maxValidity: "365 days"
|
|
||||||
# -- The mode defines if new users can signup or not. It can have three values : open, invite, closed
|
|
||||||
signup: "open"
|
|
||||||
|
|
||||||
# -- Node labels for pod assignment of the GUI
|
|
||||||
nodeSelector: {}
|
|
||||||
|
|
||||||
# -- Toleration labels for pod assignment of the GUI
|
|
||||||
tolerations: []
|
|
||||||
|
|
||||||
# -- Affinity settings for pod assignment of the GUI
|
|
||||||
affinity: {}
|
|
||||||
|
|
||||||
# -- Pod annotations
|
|
||||||
podAnnotations: {}
|
|
||||||
|
|
||||||
additionalVolumes:
|
|
||||||
- name: sharry-config
|
|
||||||
configMap:
|
|
||||||
name: sharry-config
|
|
||||||
additionalVolumeMounts:
|
|
||||||
- name: sharry-config
|
|
||||||
mountPath: /opt/sharry.conf
|
|
||||||
subPath: sharry.conf
|
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
annotations:
|
# -- Enable large file support with those annotations for nginx
|
||||||
# -- Nginx client Body Buffer Size
|
# annotations:
|
||||||
nginx.ingress.kubernetes.io/client-body-buffer-size: "2048m"
|
# nginx.ingress.kubernetes.io/client-body-buffer-size: "2048m"
|
||||||
# -- Nginx Proxy Body Size
|
# nginx.ingress.kubernetes.io/proxy-body-size: "2048m"
|
||||||
nginx.ingress.kubernetes.io/proxy-body-size: "2048m"
|
# nginx.ingress.kubernetes.io/proxy-buffering: "off"
|
||||||
nginx.ingress.kubernetes.io/proxy-buffering: "off"
|
|
||||||
|
# -- Full list of options https://eikek.github.io/sharry/doc/configure
|
||||||
|
# @default -- see URL to default config
|
||||||
|
config: |
|
||||||
|
sharry.restserver {
|
||||||
|
# base-url = "https://sharry.${DOMAIN}"
|
||||||
|
bind {
|
||||||
|
address = "0.0.0.0"
|
||||||
|
port = 9090
|
||||||
|
}
|
||||||
|
backend {
|
||||||
|
auth {
|
||||||
|
fixed {
|
||||||
|
enabled = false # set to true to enable this auth provider
|
||||||
|
user = "admin"
|
||||||
|
password = "admin"
|
||||||
|
order = 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user