-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from TriliumNext/add-config-ini
Add managing config.ini file as part of chart
- Loading branch information
Showing
6 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ __snapshot__/ | |
_site/output1.yaml | ||
|
||
output* | ||
|
||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-config | ||
labels: | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/name: {{ .Chart.Name }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
data: | ||
config.ini: | | ||
[General] | ||
# Instance name can be used to distinguish between different instances using backend api.getInstanceName() | ||
instanceName={{ .Values.configini.general.instanceName }} | ||
# set to true to allow using Trilium without authentication (makes sense for server build only, desktop build doesn't need password) | ||
noAuthentication={{ .Values.configini.general.noAuthentication }} | ||
# set to true to disable backups (e.g. because of limited space on server) | ||
noBackup={{ .Values.configini.general.noBackup }} | ||
# Disable automatically generating desktop icon | ||
# noDesktopIcon=true | ||
[Network] | ||
# host setting is relevant only for web deployments - set the host on which the server will listen | ||
host={{ .Values.configini.network.host }} | ||
# port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable) | ||
port={{ .Values.configini.network.port }} | ||
# true for TLS/SSL/HTTPS (secure), false for HTTP (unsecure). | ||
https={{ .Values.configini.network.https }} | ||
# path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true | ||
certPath={{ .Values.configini.network.certPath }} | ||
keyPath={{ .Values.configini.network.keyPath }} | ||
# setting to give trust to reverse proxies, a comma-separated list of trusted rev. proxy IPs can be specified (CIDR notation is permitted), | ||
# alternatively 'true' will make use of the leftmost IP in X-Forwarded-For, ultimately an integer can be used to tell about the number of hops between | ||
# Trilium (which is hop 0) and the first trusted rev. proxy. | ||
# once set, expressjs will use the X-Forwarded-For header set by the rev. proxy to determinate the real IPs of clients. | ||
# expressjs shortcuts are supported: loopback(127.0.0.1/8, ::1/128), linklocal(169.254.0.0/16, fe80::/10), uniquelocal(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7) | ||
trustedReverseProxy={{ .Values.configini.network.trustedReverseProxy }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters