conf

package
v0.0.0-...-746aa3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendVersion = "3.1.1"

BackendVersion 当前后端版本号

View Source
var CORSConfig = &cors{
	AllowOrigins:     []string{"UNSET"},
	AllowMethods:     []string{"PUT", "POST", "GET", "OPTIONS"},
	AllowHeaders:     []string{"Cookie", "X-Policy", "Authorization", "Content-Length", "Content-Type", "X-Path", "X-FileName"},
	AllowCredentials: false,
	ExposeHeaders:    nil,
}

CORSConfig 跨域配置

View Source
var CaptchaConfig = &captcha{
	Height:             60,
	Width:              240,
	Mode:               3,
	ComplexOfNoiseText: base64Captcha.CaptchaComplexLower,
	ComplexOfNoiseDot:  base64Captcha.CaptchaComplexLower,
	IsShowHollowLine:   false,
	IsShowNoiseDot:     false,
	IsShowNoiseText:    false,
	IsShowSlimeLine:    false,
	IsShowSineLine:     false,
	CaptchaLen:         6,
}

CaptchaConfig 验证码配置

View Source
var DatabaseConfig = &database{
	Type:   "UNSET",
	DBFile: "cloudreve.db",
	Port:   3306,
}

DatabaseConfig 数据库配置

View Source
var IsPro = "false"

IsPro 是否为Pro版本

View Source
var LastCommit = "a11f819"

LastCommit 最后commit id

View Source
var RedisConfig = &redis{
	Network:  "tcp",
	Server:   "",
	Password: "",
	DB:       "0",
}

RedisConfig Redis服务器配置

View Source
var RequiredDBVersion = "3.1.0"

RequiredDBVersion 与当前版本匹配的数据库版本

View Source
var RequiredStaticVersion = "3.1.1"

RequiredStaticVersion 与当前版本匹配的静态资源版本

View Source
var SSLConfig = &ssl{
	Listen:   ":443",
	CertPath: "",
	KeyPath:  "",
}
View Source
var SlaveConfig = &slave{
	CallbackTimeout: 20,
	SignatureTTL:    60,
}

SlaveConfig 从机配置

View Source
var SystemConfig = &system{
	Debug:  false,
	Mode:   "master",
	Listen: ":5212",
}

SystemConfig 系统公用配置

View Source
var ThumbConfig = &thumb{
	MaxWidth:   400,
	MaxHeight:  300,
	FileSuffix: "._thumb",
}

ThumbConfig 缩略图配置

View Source
var UnixConfig = &unix{
	Listen: "",
}

Functions

func Init

func Init(path string)

Init 初始化配置文件

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL