forked from cheeaun/phanpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.schema.json
More file actions
89 lines (89 loc) · 2.99 KB
/
env.schema.json
File metadata and controls
89 lines (89 loc) · 2.99 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["PHANPY_WEBSITE", "PHANPY_CLIENT_NAME"],
"properties": {
"PHANPY_CLIENT_NAME": {
"type": "string",
"default": "Phanpy",
"minLength": 1,
"maxLength": 100,
"examples": ["Phanpy Dev", "Donphan"],
"description": "Client name that affects web page title, app title, OpenGraph card title, and client name for authentication"
},
"PHANPY_WEBSITE": {
"type": "string",
"format": "uri",
"examples": ["https://phanpy.social", "https://dev.phanpy.social"],
"description": "Canonical URL of the website, affects OpenGraph card URL and client URL for authentication"
},
"PHANPY_PRIVACY_POLICY_URL": {
"type": "string",
"default": "https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",
"format": "uri",
"examples": ["https://mastodon.social/privacy-policy"],
"description": "URL of the privacy policy page"
},
"PHANPY_TRANSLANG_INSTANCES": {
"type": "string",
"separator": " ",
"default": "translang.phanpy.social",
"description": "Space-separated list of Translang instances for translation"
},
"PHANPY_DEFAULT_LANG": {
"type": "string",
"default": "en",
"examples": ["en-US", "zh-CN"],
"description": "Default language fallback after multiple detection methods"
},
"PHANPY_DEFAULT_INSTANCE": {
"type": "string",
"pattern": "^(?!https?://).*$",
"format": "hostname",
"examples": ["mastodon.social", "hachyderm.io"],
"description": "Default instance for log-in (Exclude https://)"
},
"PHANPY_DEFAULT_INSTANCE_REGISTRATION_URL": {
"type": "string",
"format": "uri",
"examples": ["https://mastodon.social/auth/sign_up"],
"description": "URL of the instance registration page"
},
"PHANPY_REFERRER_POLICY": {
"type": "string",
"default": "origin",
"enum": [
"no-referrer",
"no-referrer-when-downgrade",
"origin",
"origin-when-cross-origin",
"same-origin",
"strict-origin",
"strict-origin-when-cross-origin",
"unsafe-url"
],
"description": "Referrer policy for the site, applied with meta tag on client-side"
},
"PHANPY_IMG_ALT_API_URL": {
"type": "string",
"format": "uri",
"description": "API endpoint for self-hosted img-alt-api instance"
},
"PHANPY_GIPHY_API_KEY": {
"type": "string",
"description": "API key for GIPHY integration"
},
"PHANPY_DISALLOW_ROBOTS": {
"type": ["string", "boolean"],
"examples": ["true", "1"],
"description": "Set to any value to disallow all web crawlers from indexing the site"
},
"PHANPY_LINGVA_INSTANCES": {
"type": "string",
"separator": " ",
"deprecated": true,
"description": "DEPRECATED: Space-separated list of Lingva instances for translation"
}
},
"additionalProperties": false
}