🚧 添加了静态资源

This commit is contained in:
微凉
2020-12-24 15:21:49 +08:00
parent 430b4cf723
commit a7ce9451f3
8 changed files with 43 additions and 7 deletions

View File

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

View File

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