aboutsummaryrefslogtreecommitdiffstats
path: root/roles/hastebin/templates/var/lib/hastebin/haste-server/config.js.j2
blob: dcd7668f2a89b1c81cc5c37f42dacacddf3dafa6 (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
{
  "host": "127.0.0.1",
  "port": {{ hastebin_port }},
  "keyLength": 10,
  "maxLength": 400000,
  "staticMaxAge": 86400,
  "recompressStaticAssets": true,
  "logging": [
    {
      "level": "verbose",
      "type": "Console",
      "colorize": false
    }
  ],
  "keyGenerator": {
    "type": "random"
  },
  "rateLimits": {
    "categories": {
      "normal": {
        "totalRequests": 500,
        "every": 60000
      }
    }
  },
  "storage": {
    "type": "file",
    "path": "{{ hastebin_data_dir }}"
  },
  "documents": {
  }
}