conf

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendVersion = "3.5.3"

BackendVersion 当前后端版本号

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

CORSConfig 跨域配置

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

DatabaseConfig 数据库配置

View Source
var IsPro = "true"

IsPro 是否为Pro版本

View Source
var KeyVersion = "3.3.1"

KeyVersion 授权版本号

View Source
var LastCommit = "a11f819"

LastCommit 最后commit id

View Source
var OptionOverwrite = map[string]interface{}{}
View Source
var RedisConfig = &redis{
	Network:  "tcp",
	Server:   "",
	Password: "",
	DB:       "0",
}

RedisConfig Redis服务器配置

View Source
var RequiredDBVersion = "3.5.2-pro"

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

View Source
var RequiredStaticVersion = "3.5.3"

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 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