config-sample.ini 1.6 KB

1234567891011121314151617181920212223242526272829
  1. [General]
  2. # Instance name can be used to distinguish between different instances using backend api.getInstanceName()
  3. instanceName=
  4. # set to true to allow using Trilium without authentication (makes sense for server build only, desktop build doesn't need password)
  5. noAuthentication=false
  6. # set to true to disable backups (e.g. because of limited space on server)
  7. noBackup=false
  8. # Disable automatically generating desktop icon
  9. # noDesktopIcon=true
  10. [Network]
  11. # host setting is relevant only for web deployments - set the host on which the server will listen
  12. # host=0.0.0.0
  13. # port setting is relevant only for web deployments, desktop builds run on a fixed port (changeable with TRILIUM_PORT environment variable)
  14. port=8080
  15. # true for TLS/SSL/HTTPS (secure), false for HTTP (insecure).
  16. https=false
  17. # path to certificate (run "bash bin/generate-cert.sh" to generate self-signed certificate). Relevant only if https=true
  18. certPath=
  19. keyPath=
  20. # setting to give trust to reverse proxies, a comma-separated list of trusted rev. proxy IPs can be specified (CIDR notation is permitted),
  21. # 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
  22. # Trilium (which is hop 0) and the first trusted rev. proxy.
  23. # once set, expressjs will use the X-Forwarded-For header set by the rev. proxy to determinate the real IPs of clients.
  24. # 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)
  25. trustedReverseProxy=false