-
Notifications
You must be signed in to change notification settings - Fork 7
/
shop_template.jsonc
69 lines (55 loc) · 3.39 KB
/
shop_template.jsonc
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
{
// Mandatory fields
"files": {},
"directories": []
// You can specify a message to be presented to the user by setting either the "success" or "error" json key.
// "success": "Server Just Works !!",
// If serving the index over http, you may specify a referrer to prevent others from hotlinking using the "referrer" json key.
// "referrer": "http://mydomain.com/index.tfl",
// You may specify a google API key to be used with all gdrive:/ requests using the "googleApiKey" json key.
// "googleApiKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
// You may specify a 1Fichier API key to be used with all 1f:/ requests using the "oneFichierKeys" json key.
// If multiple keys are provided, Tinfoil keeps trying them until it finds one that works.
// "oneFichierKeys": ["ap1key1", "apikey2", "apikey3"]
// You may specify custom HTTP headers to be sent with Tinfoil requests using the "headers" json key.
// "headers": ["My-Custom_header: hello", "My-Custom_header2: world"]
// You can specify a minimum Tinfoil version to load the index using the "version" json key.
// "version": 7.00
// You may specify a client certificate using "clientCertPub" and "clientCertKey" json keys.
// "clientCertPub": "-----BEGIN PUBLIC KEY----- ....",
// "clientCertKey": "-----BEGIN PRIVATE KEY----- ...."
// You may specify a list of themes to blacklist based on their hash using the "themeBlackList" json key:
// "themeBlackList": ["AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"]
// You may specify a list of themes to whitelist based on their hash using the "themeWhiteList" json key:
// "themeWhiteList": ["AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"]
// You may specify a custom theme error message using the "themeError" json key:
// "themeError": "please select an authorized theme."
// You may add a new location permenently to the user's File Browser using the "locations" json key:
// "locations": [
// "https://abc123.com/456/",
// {"url": "https://xyz.com/blah", "title": "xyz", "action"="disable"},
// {"url": "https://xyz.com/blah2", "title": "xyz2", "action"="enable"},
// {"url": "https://xyz.com/blah3", "title": "xyz3", "action"="add"}
// ]
// You may add or modify title metadata using the "titledb" json key:
// "titledb": {
// "050000BADDAD0000": {
// "id": "050000BADDAD0000",
// "name": "Tinfoil",
// "version": 0,
// "region": "US",
// "releaseDate": 20180801,
// "rating": 10,
// "publisher": "N/A",
// "description": "Nintendo Switch Title Manager",
// "size": 14000000,
// "rank": 1
// }
// }
// Any file http request can contain the header "x-set-header" which will set a global http header for all subsequent file http requests. The value should be url encoded:
// "x-set-header: MyCustomHeader%3A%20hello%20world"
// Any file http request can contain the header "x-tmp-header" which will set a temporary header good only for the current request.
// This only works if the headers are set and then a 301 or 302 redirect is issued.
// This is functionally a per-file-http header. The value should be url encoded:
// "x-tmp-header: MyCustomHeader%3A%20hello%20world"
}