config.json.j2 1.35 KB
Newer Older
nono's avatar
nono committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
    "test": {
        "db": {
            "dialect": "sqlite",
            "storage": ":memory:"
        },
        "linkifyHeaderStyle": "gfm"
    },
    "development": {
        "loglevel": "debug",
        "hsts": {
            "enable": false
        },
        "db": {
            "dialect": "sqlite",
            "storage": "./db.hedgedoc.sqlite"
        },
        "linkifyHeaderStyle": "gfm"
    },
    "production": {
nono's avatar
nono committed
21
        "domain" : {{ service_hedgedocs_domain }},
nono's avatar
nono committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
        "host" : "localhost",
        "port" : 3000,
        "protocolUseSSL" : true,
        "useSSL" : false,
        "urlAddPort" : false,
        "loglevel": "info",
        "csp": {
            "enable": true,
            "directives": {
            },
            "upgradeInsecureRequests": "auto",
            "addDefaults": true,
            "addDisqus": false,
            "addGoogleAnalytics": false
        },
        "cookiePolicy": "strict",
        "db": {
39
            "username": "{{ hedgedoc_db_user }}",
nono's avatar
nono committed
40
            "password": "{{ hedgedoc_sql_password }}",
41
            "database": "{{ hedgedoc_db_name }}",
nono's avatar
nono committed
42
43
44
45
46
47
            "host": "localhost",
            "port": "5432",
            "dialect": "postgres"
        },
        "linkifyHeaderStyle": "gfm",
        "allowAnonymous" : false,
48
        "sessionSecret" : "{{ hedgedoc_session_secret }}",
nono's avatar
nono committed
49
50
51
        "allowEmailRegister" : false
    }
}