Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alist-org
GitHub Repository: alist-org/alist
Path: blob/main/internal/conf/const.go
1560 views
1
package conf
2
3
const (
4
TypeString = "string"
5
TypeSelect = "select"
6
TypeBool = "bool"
7
TypeText = "text"
8
TypeNumber = "number"
9
)
10
11
const (
12
// site
13
VERSION = "version"
14
SiteTitle = "site_title"
15
Announcement = "announcement"
16
AllowIndexed = "allow_indexed"
17
AllowMounted = "allow_mounted"
18
RobotsTxt = "robots_txt"
19
AllowRegister = "allow_register"
20
DefaultRole = "default_role"
21
UseNewui = "use_newui"
22
23
Logo = "logo"
24
Favicon = "favicon"
25
MainColor = "main_color"
26
27
// preview
28
TextTypes = "text_types"
29
AudioTypes = "audio_types"
30
VideoTypes = "video_types"
31
ImageTypes = "image_types"
32
ProxyTypes = "proxy_types"
33
ProxyIgnoreHeaders = "proxy_ignore_headers"
34
AudioAutoplay = "audio_autoplay"
35
VideoAutoplay = "video_autoplay"
36
PreviewArchivesByDefault = "preview_archives_by_default"
37
ReadMeAutoRender = "readme_autorender"
38
FilterReadMeScripts = "filter_readme_scripts"
39
// global
40
HideFiles = "hide_files"
41
CustomizeHead = "customize_head"
42
CustomizeBody = "customize_body"
43
LinkExpiration = "link_expiration"
44
SignAll = "sign_all"
45
PrivacyRegs = "privacy_regs"
46
OcrApi = "ocr_api"
47
FilenameCharMapping = "filename_char_mapping"
48
ForwardDirectLinkParams = "forward_direct_link_params"
49
IgnoreDirectLinkParams = "ignore_direct_link_params"
50
WebauthnLoginEnabled = "webauthn_login_enabled"
51
MaxDevices = "max_devices"
52
DeviceEvictPolicy = "device_evict_policy"
53
DeviceSessionTTL = "device_session_ttl"
54
55
// index
56
SearchIndex = "search_index"
57
AutoUpdateIndex = "auto_update_index"
58
IgnorePaths = "ignore_paths"
59
MaxIndexDepth = "max_index_depth"
60
61
// aria2
62
Aria2Uri = "aria2_uri"
63
Aria2Secret = "aria2_secret"
64
65
// transmission
66
TransmissionUri = "transmission_uri"
67
TransmissionSeedtime = "transmission_seedtime"
68
69
// 115
70
Pan115TempDir = "115_temp_dir"
71
72
// pikpak
73
PikPakTempDir = "pikpak_temp_dir"
74
75
// thunder
76
ThunderTempDir = "thunder_temp_dir"
77
78
// single
79
Token = "token"
80
IndexProgress = "index_progress"
81
82
// SSO
83
SSOClientId = "sso_client_id"
84
SSOClientSecret = "sso_client_secret"
85
SSOLoginEnabled = "sso_login_enabled"
86
SSOLoginPlatform = "sso_login_platform"
87
SSOOIDCUsernameKey = "sso_oidc_username_key"
88
SSOOrganizationName = "sso_organization_name"
89
SSOApplicationName = "sso_application_name"
90
SSOEndpointName = "sso_endpoint_name"
91
SSOJwtPublicKey = "sso_jwt_public_key"
92
SSOExtraScopes = "sso_extra_scopes"
93
SSOAutoRegister = "sso_auto_register"
94
SSODefaultDir = "sso_default_dir"
95
SSODefaultPermission = "sso_default_permission"
96
SSOCompatibilityMode = "sso_compatibility_mode"
97
98
// ldap
99
LdapLoginEnabled = "ldap_login_enabled"
100
LdapServer = "ldap_server"
101
LdapManagerDN = "ldap_manager_dn"
102
LdapManagerPassword = "ldap_manager_password"
103
LdapUserSearchBase = "ldap_user_search_base"
104
LdapUserSearchFilter = "ldap_user_search_filter"
105
LdapDefaultPermission = "ldap_default_permission"
106
LdapDefaultDir = "ldap_default_dir"
107
LdapLoginTips = "ldap_login_tips"
108
109
// s3
110
S3Buckets = "s3_buckets"
111
S3AccessKeyId = "s3_access_key_id"
112
S3SecretAccessKey = "s3_secret_access_key"
113
114
// qbittorrent
115
QbittorrentUrl = "qbittorrent_url"
116
QbittorrentSeedtime = "qbittorrent_seedtime"
117
118
// ftp
119
FTPPublicHost = "ftp_public_host"
120
FTPPasvPortMap = "ftp_pasv_port_map"
121
FTPProxyUserAgent = "ftp_proxy_user_agent"
122
FTPMandatoryTLS = "ftp_mandatory_tls"
123
FTPImplicitTLS = "ftp_implicit_tls"
124
FTPTLSPrivateKeyPath = "ftp_tls_private_key_path"
125
FTPTLSPublicCertPath = "ftp_tls_public_cert_path"
126
127
// traffic
128
TaskOfflineDownloadThreadsNum = "offline_download_task_threads_num"
129
TaskOfflineDownloadTransferThreadsNum = "offline_download_transfer_task_threads_num"
130
TaskUploadThreadsNum = "upload_task_threads_num"
131
TaskCopyThreadsNum = "copy_task_threads_num"
132
TaskDecompressDownloadThreadsNum = "decompress_download_task_threads_num"
133
TaskDecompressUploadThreadsNum = "decompress_upload_task_threads_num"
134
StreamMaxClientDownloadSpeed = "max_client_download_speed"
135
StreamMaxClientUploadSpeed = "max_client_upload_speed"
136
StreamMaxServerDownloadSpeed = "max_server_download_speed"
137
StreamMaxServerUploadSpeed = "max_server_upload_speed"
138
)
139
140
const (
141
UNKNOWN = iota
142
FOLDER
143
// OFFICE
144
VIDEO
145
AUDIO
146
TEXT
147
IMAGE
148
)
149
150
// ContextKey is the type of context keys.
151
const (
152
NoTaskKey = "no_task"
153
)
154
155