2022-06-06 13:48:53 +00:00
|
|
|
package conf
|
2022-06-27 06:32:21 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
TypeString = "string"
|
|
|
|
TypeSelect = "select"
|
|
|
|
TypeBool = "bool"
|
|
|
|
TypeText = "text"
|
|
|
|
TypeNumber = "number"
|
|
|
|
)
|
2022-06-29 08:08:55 +00:00
|
|
|
|
|
|
|
const (
|
2022-08-08 04:52:54 +00:00
|
|
|
// site
|
2022-06-29 09:31:37 +00:00
|
|
|
VERSION = "version"
|
|
|
|
SiteTitle = "site_title"
|
|
|
|
Announcement = "announcement"
|
2022-12-20 08:08:32 +00:00
|
|
|
AllowIndexed = "allow_indexed"
|
2022-08-13 07:11:46 +00:00
|
|
|
|
|
|
|
Logo = "logo"
|
|
|
|
Favicon = "favicon"
|
|
|
|
MainColor = "main_color"
|
2022-06-29 09:31:37 +00:00
|
|
|
|
2022-08-08 04:52:54 +00:00
|
|
|
// preview
|
2022-12-20 08:08:32 +00:00
|
|
|
TextTypes = "text_types"
|
|
|
|
AudioTypes = "audio_types"
|
|
|
|
VideoTypes = "video_types"
|
|
|
|
ImageTypes = "image_types"
|
|
|
|
ProxyTypes = "proxy_types"
|
|
|
|
ProxyIgnoreHeaders = "proxy_ignore_headers"
|
|
|
|
AudioAutoplay = "audio_autoplay"
|
|
|
|
VideoAutoplay = "video_autoplay"
|
2022-06-29 09:31:37 +00:00
|
|
|
|
2022-08-08 04:52:54 +00:00
|
|
|
// global
|
2022-11-22 07:54:18 +00:00
|
|
|
HideFiles = "hide_files"
|
|
|
|
CustomizeHead = "customize_head"
|
|
|
|
CustomizeBody = "customize_body"
|
|
|
|
LinkExpiration = "link_expiration"
|
2022-12-02 09:42:42 +00:00
|
|
|
SignAll = "sign_all"
|
2022-11-22 07:54:18 +00:00
|
|
|
PrivacyRegs = "privacy_regs"
|
|
|
|
OcrApi = "ocr_api"
|
|
|
|
FilenameCharMapping = "filename_char_mapping"
|
2022-12-05 08:45:11 +00:00
|
|
|
|
|
|
|
// index
|
2023-01-06 16:59:30 +00:00
|
|
|
SearchIndex = "search_index"
|
|
|
|
AutoUpdateIndex = "auto_update_index"
|
|
|
|
IgnorePaths = "ignore_paths"
|
2023-01-17 09:33:18 +00:00
|
|
|
MaxIndexDepth = "max_index_depth"
|
2022-06-29 09:31:37 +00:00
|
|
|
|
2022-08-08 04:52:54 +00:00
|
|
|
// aria2
|
2022-06-29 09:31:37 +00:00
|
|
|
Aria2Uri = "aria2_uri"
|
|
|
|
Aria2Secret = "aria2_secret"
|
|
|
|
|
2022-08-08 04:52:54 +00:00
|
|
|
// single
|
2022-11-28 05:45:25 +00:00
|
|
|
Token = "token"
|
|
|
|
IndexProgress = "index_progress"
|
2022-12-27 14:11:22 +00:00
|
|
|
|
|
|
|
//Github
|
|
|
|
GithubClientId = "github_client_id"
|
|
|
|
GithubClientSecrets = "github_client_secrets"
|
|
|
|
GithubLoginEnabled = "github_login_enabled"
|
2022-06-29 08:08:55 +00:00
|
|
|
)
|
2022-08-07 16:51:05 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
UNKNOWN = iota
|
|
|
|
FOLDER
|
2022-08-23 08:50:54 +00:00
|
|
|
//OFFICE
|
2022-08-07 16:51:05 +00:00
|
|
|
VIDEO
|
|
|
|
AUDIO
|
|
|
|
TEXT
|
|
|
|
IMAGE
|
|
|
|
)
|