conf

package
v3.0.0-...-3edb00a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: GPL-3.0 Imports: 3 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendVersion = "3.8.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,
	SameSite:         "Default",
	Secure:           false,
}

CORSConfig 跨域配置

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

DatabaseConfig 数据库配置

View Source
var IsPro = "false"

IsPro 是否为Pro版本

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.8.1"

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

View Source
var RequiredStaticVersion = "3.8.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",
	ProxyHeader: "X-Forwarded-For",
}

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