aboutsummaryrefslogtreecommitdiff
path: root/back-end/src/SimpleBookmark.json
blob: 116587da1115cb33b58cf582b0178c59e720291b (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
{

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

  "bm_endpoint": {

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

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

  //System website lookup endpoint (aka curl)
  "curl": {
    "path": "/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": "/register", //Path for the registration endpoint
    "token_lifetime_mins": 360, //Token lifetime in minutes
    "key_regen_interval_mins": 3600 //Signing key regeneration interval in minutes
  }
}