summaryrefslogtreecommitdiff
path: root/ansible/roles/etherpad/templates/settings.json
blob: 7818d93f33e6c3e678e5e87b26d0b18aac17381f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
  "title": "joeac's docs",
  "showRecentPads": true,
  "favicon": null,
  "skinName": "colibris",
  "skinVariants": "super-light-toolbar super-light-editor light-background",
  "ip": "0.0.0.0",
  "port": {{ services.etherpad.port }},
  "showSettingsInAdminPage": true,
  "enableMetrics": "${ENABLE_METRICS:true}",
  "cleanup": {
    "enabled": false,
    "keepRevisions": 5
  },
  "dbType": "sqlite",
  "dbSettings": {
    "filename": "var/sqlite.db"
  },
  "defaultPadText" : "",
  "padOptions": {
    "noColors":         false,
    "showControls":     true,
    "showChat":         true,
    "showLineNumbers":  true,
    "useMonospaceFont": false,
    "userName":         null,
    "userColor":        null,
    "rtl":              false,
    "alwaysShowChat":   false,
    "chatAndUsers":     false,
    "lang":             null
  },
  "padShortcutEnabled" : {
    "altF9":     true,
    "altC":      true,
    "cmdShift2": true,
    "delete":    true,
    "return":    true,
    "esc":       true,
    "cmdS":      true,
    "tab":       true,
    "cmdZ":      true,
    "cmdY":      true,
    "cmdI":      true,
    "cmdB":      true,
    "cmdU":      true,
    "cmd5":      true,
    "cmdShiftL": true,
    "cmdShiftN": true,
    "cmdShift1": true,
    "cmdShiftC": true,
    "cmdH":      true,
    "ctrlHome":  true,
    "pageUp":    true,
    "pageDown":  true
  },
  "updateServer": "https://etherpad.org/ep_infos",
  "suppressErrorsInPadText": false,
  "requireSession": false,
  "editOnly": false,
  "minify": true,
  "maxAge": 21600,
  "soffice": null,
  "docxExport": true,
  "allowUnknownFileEnds": true,
  "requireAuthentication": false,
  "requireAuthorization": false,
  "trustProxy": false,
  "cookie": {
    "keyRotationInterval": 86400000,
    "sameSite": "Lax",
    "sessionLifetime": 864000000,
    "sessionRefreshInterval": 86400000,
    "sessionCleanup": true
  },
  "disableIPlogging": false,
  "automaticReconnectionTimeout": 0,
  "scrollWhenFocusLineIsOutOfViewport": {
    "percentage": {
      "editionAboveViewport": 0,
      "editionBelowViewport": 0
    },
    "duration": 0,
    "scrollWhenCaretIsInTheLastLineOfViewport": false,
    "percentageToScrollWhenUserPressesArrowUp": 0
  },
  "users": {
    "admin": {
      "password": "{{ etherpad_admin_password }}",
      "is_admin": true
    }
  },
  "socketTransportProtocols" : ["websocket", "polling"],
  "socketIo": {
    "maxHttpBufferSize": 1000000
  },
  "loadTest": false,
  "dumpOnUncleanExit": false,
  "importExportRateLimiting": {
    "windowMs": 90000,
    "max": 10
  },
  "importMaxFileSize": 52428800, // 50 * 1024 * 1024
  "authenticationMethod": "${AUTHENTICATION_METHOD:sso}",
    "enableDarkMode": "${ENABLE_DARK_MODE:true}",
    "enablePadWideSettings": "${ENABLE_PAD_WIDE_SETTINGS:false}",
  "commitRateLimiting": {
    "duration": 1,
    "points": 10
  },
  "logLayoutType": "colored",
  "customLocaleStrings": {},
  "enableAdminUITests": false,
  "lowerCasePadIds": false,
  "sso": {
    "issuer": "${SSO_ISSUER:http://localhost:{{ services.etherpad.port }}}",
      "clients": [
        {
          "client_id": "${ADMIN_CLIENT:admin_client}",
          "client_secret": "${ADMIN_SECRET:admin}",
          "grant_types": ["authorization_code"],
          "response_types": ["code"],
          "redirect_uris": ["${ADMIN_REDIRECT:http://localhost:{{ services.etherpad.port }}/admin/}"]
        },
        {
          "client_id": "${USER_CLIENT:user_client}",
          "client_secret": "${USER_SECRET:user}",
          "grant_types": ["authorization_code"],
          "response_types": ["code"],
          "redirect_uris": ["${USER_REDIRECT:http://localhost:{{ services.etherpad.port }}/}"]
        }
      ]
    }
}