Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuiltAt string GitAuthor string GitCommit string Version string = "dev" WebVersion string )
View Source
var ( SlicesMap = make(map[string][]string) FilenameCharMap = make(map[string]string) PrivacyReg []*regexp.Regexp )
View Source
var ( RawIndexHTML string ManageHTML string IndexHTML string )
View Source
var ( // StoragesLoaded loaded success if empty StoragesLoaded = false )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Force bool `json:"force"`
SiteURL string `json:"site_url"`
Cdn string `json:"cdn"`
JwtSecret string `json:"jwt_secret"`
TokenExpiresIn int `json:"token_expires_in"`
Database Database `json:"database"`
Meilisearch Meilisearch `json:"meilisearch"`
Scheme Scheme `json:"scheme"`
TempDir string `json:"temp_dir"`
BleveDir string `json:"bleve_dir"`
DistDir string `json:"dist_dir"`
Log LogConfig `json:"log"`
DelayedStart int `json:"delayed_start"`
MaxConnections int `json:"max_connections"`
MaxConcurrency int `json:"max_concurrency"`
TLSInsecureSkipVerify bool `json:"tls_insecure_skip_verify"`
Tasks TasksConfig `json:"tasks"`
Cors Cors `json:"cors"`
S3 S3 `json:"s3"`
FTP FTP `json:"ftp"`
SFTP SFTP `json:"sftp"`
LastLaunchedVersion string `json:"last_launched_version"`
}
func DefaultConfig ¶
type Database ¶
type Database struct {
Type string `json:"type"`
Host string `json:"host"`
Port int `json:"port"`
User string `json:"user"`
Password string `json:"password"`
Name string `json:"name"`
DBFile string `json:"db_file"`
TablePrefix string `json:"table_prefix"`
SSLMode string `json:"ssl_mode"`
DSN string `json:"dsn"`
}
type FTP ¶
type FTP struct {
Enable bool `json:"enable"`
Listen string `json:"listen"`
FindPasvPortAttempts int `json:"find_pasv_port_attempts"`
ActiveTransferPortNon20 bool `json:"active_transfer_port_non_20"`
IdleTimeout int `json:"idle_timeout"`
ConnectionTimeout int `json:"connection_timeout"`
DisableActiveMode bool `json:"disable_active_mode"`
DefaultTransferBinary bool `json:"default_transfer_binary"`
EnableActiveConnIPCheck bool `json:"enable_active_conn_ip_check"`
EnablePasvConnIPCheck bool `json:"enable_pasv_conn_ip_check"`
}
type LogConfig ¶
type LogConfig struct {
Enable bool `json:"enable"`
Name string `json:"name"`
MaxSize int `json:"max_size"`
MaxBackups int `json:"max_backups"`
MaxAge int `json:"max_age"`
Compress bool `json:"compress"`
Filter LogFilterConfig `json:"filter"` // Log filtering configuration (config file only, no env support)
}
type LogFilterConfig ¶ added in v4.2.7
type LogFilterConfig struct {
// EnableFiltering controls whether log filtering is enabled
EnableFiltering bool `json:"enable_filtering"`
// FilterHealthChecks controls whether to filter health check requests
FilterHealthChecks bool `json:"filter_health_checks"`
// FilterWebDAV controls whether to filter WebDAV requests (only for HTTP server)
FilterWebDAV bool `json:"filter_webdav"`
// FilterHEADRequests controls whether to filter HEAD requests
FilterHEADRequests bool `json:"filter_head_requests"`
// CustomSkipPaths allows adding custom paths to skip
CustomSkipPaths []string `json:"custom_skip_paths"`
// CustomSkipMethods allows adding custom methods to skip
CustomSkipMethods []string `json:"custom_skip_methods"`
// CustomSkipPrefixes allows adding custom path prefixes to skip
CustomSkipPrefixes []string `json:"custom_skip_prefixes"`
}
LogFilterConfig holds configuration for log filtering Note: This configuration is only supported via config file, not environment variables
type Meilisearch ¶
type Scheme ¶
type Scheme struct {
Address string `json:"address"`
HttpPort int `json:"http_port"`
HttpsPort int `json:"https_port"`
ForceHttps bool `json:"force_https"`
CertFile string `json:"cert_file"`
KeyFile string `json:"key_file"`
UnixFile string `json:"unix_file"`
UnixFilePerm string `json:"unix_file_perm"`
EnableH2c bool `json:"enable_h2c"`
}
type TaskConfig ¶
type TasksConfig ¶
type TasksConfig struct {
Download TaskConfig `json:"download"`
Transfer TaskConfig `json:"transfer"`
Upload TaskConfig `json:"upload"`
Copy TaskConfig `json:"copy"`
Move TaskConfig `json:"move"`
Decompress TaskConfig `json:"decompress"`
DecompressUpload TaskConfig `json:"decompress_upload"`
AllowRetryCanceled bool `json:"allow_retry_canceled"`
}
Click to show internal directories.
Click to hide internal directories.