2022-06-06 13:48:53 +00:00
|
|
|
package conf
|
2022-06-27 06:32:21 +00:00
|
|
|
|
|
|
|
const (
|
2023-03-02 09:55:33 +00:00
|
|
|
TypeString = "string"
|
|
|
|
TypeSelect = "select"
|
|
|
|
TypeBool = "bool"
|
|
|
|
TypeText = "text"
|
|
|
|
TypeNumber = "number"
|
2022-06-27 06:32:21 +00:00
|
|
|
)
|
2022-06-29 08:08:55 +00:00
|
|
|
|
|
|
|
const (
|
2023-03-02 09:55:33 +00:00
|
|
|
// site
|
|
|
|
VERSION = "version"
|
|
|
|
SiteTitle = "site_title"
|
|
|
|
Announcement = "announcement"
|
|
|
|
AllowIndexed = "allow_indexed"
|
2023-04-27 08:33:01 +00:00
|
|
|
AllowMounted = "allow_mounted"
|
2022-08-13 07:11:46 +00:00
|
|
|
|
2023-03-02 09:55:33 +00:00
|
|
|
Logo = "logo"
|
|
|
|
Favicon = "favicon"
|
|
|
|
MainColor = "main_color"
|
2022-06-29 09:31:37 +00:00
|
|
|
|
2023-03-02 09:55:33 +00:00
|
|
|
// preview
|
|
|
|
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
|
2023-02-07 08:39:14 +00:00
|
|
|
HideFiles = "hide_files"
|
|
|
|
CustomizeHead = "customize_head"
|
|
|
|
CustomizeBody = "customize_body"
|
|
|
|
LinkExpiration = "link_expiration"
|
|
|
|
SignAll = "sign_all"
|
|
|
|
PrivacyRegs = "privacy_regs"
|
|
|
|
OcrApi = "ocr_api"
|
|
|
|
FilenameCharMapping = "filename_char_mapping"
|
|
|
|
ForwardDirectLinkParams = "forward_direct_link_params"
|
2023-03-02 09:55:33 +00:00
|
|
|
|
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
|
|
|
|
2023-03-02 09:55:33 +00:00
|
|
|
// aria2
|
|
|
|
Aria2Uri = "aria2_uri"
|
|
|
|
Aria2Secret = "aria2_secret"
|
2022-06-29 09:31:37 +00:00
|
|
|
|
2023-03-02 09:55:33 +00:00
|
|
|
// single
|
|
|
|
Token = "token"
|
|
|
|
IndexProgress = "index_progress"
|
2022-12-27 14:11:22 +00:00
|
|
|
|
2023-03-02 09:55:33 +00:00
|
|
|
//SSO
|
2023-04-26 08:01:40 +00:00
|
|
|
SSOClientId = "sso_client_id"
|
|
|
|
SSOClientSecret = "sso_client_secret"
|
|
|
|
SSOLoginEnabled = "sso_login_enabled"
|
|
|
|
SSOLoginplatform = "sso_login_platform"
|
|
|
|
SSOOrganizationName = "sso_organization_name"
|
|
|
|
SSOApplicationName = "sso_application_name"
|
|
|
|
SSOEndpointName = "sso_endpoint_name"
|
|
|
|
SSOJwtPublicKey = "sso_jwt_public_key"
|
2023-02-14 07:20:45 +00:00
|
|
|
|
2023-03-02 09:55:33 +00:00
|
|
|
// qbittorrent
|
2023-03-14 04:13:23 +00:00
|
|
|
QbittorrentUrl = "qbittorrent_url"
|
|
|
|
QbittorrentSeedtime = "qbittorrent_seedtime"
|
2022-06-29 08:08:55 +00:00
|
|
|
)
|
2022-08-07 16:51:05 +00:00
|
|
|
|
|
|
|
const (
|
2023-03-02 09:55:33 +00:00
|
|
|
UNKNOWN = iota
|
|
|
|
FOLDER
|
|
|
|
//OFFICE
|
|
|
|
VIDEO
|
|
|
|
AUDIO
|
|
|
|
TEXT
|
|
|
|
IMAGE
|
2022-08-07 16:51:05 +00:00
|
|
|
)
|