aboutsummaryrefslogtreecommitdiff
path: root/ci/container/config-templates/SimpleBookmark-template.json
blob: c2bf78082e7f5060c5848c58d08210bb3261a348 (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
{

  //Comments are allowed
  "debug": false, //Enables obnoxious debug logging

  "bm_endpoint": {

    "path": "/api/bookmarks", //Path for the bookmarks endpoint

   "config": {
      "max_limit": 100,                 //Max results per page
      "default_limit": 20,              //Default results per page
      "user_quota": ${MAX_BOOKMARKS}    //Max bookmarks per user
    }
  },

  //System website lookup endpoint (aka curl)
  "curl": {
    "path": "/api/lookup",
    "exe_path": "curl", //Path to the curl executable
    "extra_args": [
      "--globoff", //Disables unsafe url globbing
      "--no-keepalive", //Disables keepalive, uneeded for a single lookup request
      "--max-filesize",
      "100K", //Max file size 100K
      "--max-redirs",
      "5", //Max redirects 5
      "--location", //Follow redirects
    ]
  },

  "registration": {
    "path": "/api/register", //Path for the registration endpoint
    "token_lifetime_mins": ${REG_TOKEN_DURATION_MIN}, //Token lifetime in minutes
    "key_regen_interval_mins": ${REG_TOKEN_DURATION_MIN}0 //Signing key regeneration interval in minutes
  }
}