**Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes #15976 **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._
162 lines
4.5 KiB
Smarty
162 lines
4.5 KiB
Smarty
{{/* Define the configmap */}}
|
|
{{- define "radicale.configmaps" -}}
|
|
{{- $fullname := (include "tc.v1.common.lib.chart.names.fullname" $) -}}
|
|
|
|
radicale-config:
|
|
enabled: true
|
|
data:
|
|
config: |-
|
|
# -*- mode: conf -*-
|
|
# vim:ft=cfg
|
|
|
|
# Config file for Radicale - A simple calendar server
|
|
#
|
|
# Place it into /etc/radicale/config (global)
|
|
# or ~/.config/radicale/config (user)
|
|
#
|
|
# The current values are the default ones
|
|
|
|
|
|
[server]
|
|
|
|
# CalDAV server hostnames separated by a comma
|
|
# IPv4 syntax: address:port
|
|
# IPv6 syntax: [address]:port
|
|
# For example: 0.0.0.0:9999, [::]:9999
|
|
#hosts = localhost:5232
|
|
hosts = "0.0.0.0:{{ .Values.service.main.ports.main.port }}"
|
|
|
|
# Max parallel connections
|
|
#max_connections = 8
|
|
max_connections = {{ .Values.radicale.server.max_connections }}
|
|
|
|
# Max size of request body (bytes)
|
|
#max_content_length = 100000000
|
|
{{- /*
|
|
Multiply by 1, so large integers aren't rendered in scientific notation
|
|
See: https://github.com/helm/helm/issues/1707#issuecomment-1167860346
|
|
*/}}
|
|
max_content_length = {{ mul .Values.radicale.server.max_content_length 1 }}
|
|
|
|
# Socket timeout (seconds)
|
|
#timeout = 30
|
|
timeout = {{ .Values.radicale.server.timeout }}
|
|
|
|
# SSL flag, enable HTTPS protocol
|
|
#ssl = False
|
|
|
|
# SSL certificate path
|
|
#certificate = /etc/ssl/radicale.cert.pem
|
|
|
|
# SSL private key
|
|
#key = /etc/ssl/radicale.key.pem
|
|
|
|
# CA certificate for validating clients. This can be used to secure
|
|
# TCP traffic between Radicale and a reverse proxy
|
|
#certificate_authority =
|
|
|
|
|
|
[encoding]
|
|
|
|
# Encoding for responding requests
|
|
#request = utf-8
|
|
request = {{ .Values.radicale.encoding.request }}
|
|
|
|
# Encoding for storing local collections
|
|
#stock = utf-8
|
|
stock = {{ .Values.radicale.encoding.stock }}
|
|
|
|
|
|
[auth]
|
|
|
|
# Authentication method
|
|
# Value: none | htpasswd | remote_user | http_x_remote_user
|
|
#type = none
|
|
type = {{ .Values.radicale.auth.type }}
|
|
|
|
# Htpasswd filename
|
|
#htpasswd_filename = /etc/radicale/users
|
|
|
|
# Htpasswd encryption method
|
|
# Value: plain | bcrypt | md5
|
|
# bcrypt requires the installation of radicale[bcrypt].
|
|
#htpasswd_encryption = md5
|
|
htpasswd_encryption = bcrypt
|
|
|
|
# Incorrect authentication delay (seconds)
|
|
#delay = 1
|
|
delay = {{ .Values.radicale.auth.delay }}
|
|
|
|
# Message displayed in the client when a password is needed
|
|
#realm = Radicale - Password Required
|
|
realm = {{ .Values.radicale.auth.realm }}
|
|
|
|
[rights]
|
|
|
|
# Rights backend
|
|
# Value: none | authenticated | owner_only | owner_write | from_file
|
|
#type = owner_only
|
|
type = {{ .Values.radicale.rights.type }}
|
|
|
|
# File for rights management from_file
|
|
#file = /etc/radicale/rights
|
|
|
|
|
|
[storage]
|
|
|
|
# Storage backend
|
|
# Value: multifilesystem | multifilesystem_nolock
|
|
#type = multifilesystem
|
|
type = {{ .Values.radicale.storage.type }}
|
|
|
|
# Folder for storing local collections, created if not present
|
|
#filesystem_folder = /var/lib/radicale/collections
|
|
filesystem_folder = /data/collections
|
|
|
|
# Delete sync token that are older (seconds)
|
|
#max_sync_token_age = 2592000
|
|
{{- /*
|
|
Multiply by 1, so large integers aren't rendered in scientific notation
|
|
See: https://github.com/helm/helm/issues/1707#issuecomment-1167860346
|
|
*/}}
|
|
max_sync_token_age = {{ mul .Values.radicale.storage.max_sync_token_age 1 }}
|
|
|
|
# Command that is run after changes to storage
|
|
# Example: ([ -d .git ] || git init) && git add -A && (git diff --cached --quiet || git commit -m "Changes by "%(user)s)
|
|
#hook =
|
|
|
|
|
|
[web]
|
|
|
|
# Web interface backend
|
|
# Value: none | internal
|
|
#type = internal
|
|
type = {{ .Values.radicale.web.type }}
|
|
|
|
|
|
[logging]
|
|
|
|
# Threshold for the logger
|
|
# Value: debug | info | warning | error | critical
|
|
#level = warning
|
|
level = {{ .Values.radicale.logging.level }}
|
|
|
|
# Don't include passwords in logs
|
|
#mask_passwords = True
|
|
mask_passwords = {{ .Values.radicale.logging.mask_passwords | ternary "True" "False" }}
|
|
|
|
|
|
[headers]
|
|
|
|
# Additional HTTP headers
|
|
#Access-Control-Allow-Origin = *
|
|
|
|
radicale-users:
|
|
enabled: true
|
|
data:
|
|
users: |-
|
|
{{- range .Values.radicale.auth.users }}
|
|
{{ htpasswd .username .password }}
|
|
{{- end }}
|
|
{{- end }}
|