🚧 添加了静态资源
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
package conf
|
||||
|
||||
type Config struct {
|
||||
Info struct{
|
||||
Title string `yaml:"title" json:"title"`
|
||||
SiteUrl string `yaml:"site_url" json:"site_url"`//网站url
|
||||
Logo string `yaml:"logo" json:"logo"`
|
||||
} `yaml:"info"`
|
||||
Server struct{
|
||||
SiteUrl string `yaml:"site_url"`//网站url
|
||||
Port string `yaml:"port"`//端口
|
||||
Search bool `yaml:"search"`//允许搜索
|
||||
Search bool `yaml:"search" json:"search"`//允许搜索
|
||||
Static string `yaml:"static"`
|
||||
} `yaml:"server"`
|
||||
AliDrive struct{
|
||||
ApiUrl string `yaml:"api_url"`//阿里云盘api
|
||||
|
@@ -15,6 +15,8 @@ var(
|
||||
var Conf = new(Config)
|
||||
|
||||
const (
|
||||
VERSION="0.1.0"
|
||||
|
||||
ImageThumbnailProcess="image/resize,w_50"
|
||||
VideoThumbnailProcess="video/snapshot,t_0,f_jpg,w_50"
|
||||
ImageUrlProcess="image/resize,w_1920/format,jpeg"
|
||||
|
Reference in New Issue
Block a user