Changing the configs and their feedback for users is one of the major topics for 2.0. Therefore I want to present a basic idea on how the future config format might looks like and I would love to hear your feedback on it. Especially things that you really disliked in the old configs and maybe how you would prefer things in 2.0.
---
log:
level: "info"
path: ""
server:
baseurl: 'https://demo.codimd.org'
port: 3000
path: "/run/codimd/server.sock"
# …
database:
# URL mode
url: "postgres://localhost/codimd"
# OR regular config mode
dialect: 'postgres'
host: 'localhost'
database: 'codimd'
storage:
minio:
accessKey: "something"
secretKey: "secret"
endpoint: "localhost"
port: 9000
secure: false
s3:
# …
features:
freeUrlMode: false
libravatar: true
someMoreComplexFeature:
myOption: "hello"
myOtherOption: "world"
security:
session:
name: "connect.id"
secret: "mysecret"
hsts:
enabled: true
csp:
directives:
scriptSrc:
- "https://extras.codimd.org"
Above is an example on how I imagine our future config could, and should look like. I would love to get some more of your ideas in there