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

  //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
    }
  },

  "widgets": {
    "enabled": true,      //Enables the widgets endpoint
    "path": "/widgets",   //Path for the widgets endpoint
    "cors-urls": "*"      //CORS allowed urls
  },

  //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
  }
}