Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add managing config.ini file as part of chart #6

Merged
merged 9 commits into from
Sep 18, 2024
Merged

Conversation

perfectra1n
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Sep 18, 2024

Changes in Final Manifest

  • manifest.yaml

manifest.yaml

--- a/main/charts/trilium/build/manifest.yaml
+++ b/charts/trilium/build/manifest.yaml
@@ -1,4 +1,47 @@
 ---
+# Source: trilium/templates/config.yaml
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: trilium-config
+  labels:
+    app.kubernetes.io/instance: trilium
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: trilium
+    app.kubernetes.io/version: 0.90.4
+    helm.sh/chart: trilium-1.2.0
+data:
+  config.ini: |
+    [General]
+    # Instance name can be used to distinguish between different instances using backend api.getInstanceName()
+    instanceName=
+
+    # set to true to allow using Trilium without authentication (makes sense for server build only, desktop build doesn't need password)
+    noAuthentication=false
+
+    # set to true to disable backups (e.g. because of limited space on server)
+    noBackup=false
+
+    # 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=0.0.0.0
+    # port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)
+    port=8080
+    # true for TLS/SSL/HTTPS (secure), false for HTTP (unsecure).
+    https=false
+    # path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true
+    certPath=
+    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=true
+---
 # Source: trilium/templates/release.yaml
 apiVersion: v1
 kind: Service
@@ -10,7 +53,7 @@ metadata:
     app.kubernetes.io/name: trilium
     app.kubernetes.io/service: trilium
     app.kubernetes.io/version: 0.90.4
-    helm.sh/chart: trilium-1.1.1
+    helm.sh/chart: trilium-1.2.0
 spec:
   type: ClusterIP
   ports:
@@ -34,7 +77,7 @@ metadata:
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/name: trilium
     app.kubernetes.io/version: 0.90.4
-    helm.sh/chart: trilium-1.1.1
+    helm.sh/chart: trilium-1.2.0
 spec:
   revisionHistoryLimit: 3
   replicas: 1
@@ -104,9 +147,15 @@ spec:
             periodSeconds: 10
             timeoutSeconds: 5
           volumeMounts:
+          - mountPath: /home/node/trilium-data/config.ini
+            name: config
+            subPath: config.ini
           - mountPath: /home/node/trilium-data
             name: data
       volumes: 
+        - configMap:
+            name: trilium-config
+          name: config
         - name: data
           persistentVolumeClaim:
             claimName: test-pvc

See the workflow run

@perfectra1n perfectra1n merged commit de9cf1b into main Sep 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant