fork from d7z-project/caddy-gitea-pages
This commit is contained in:
parent
50a258ea59
commit
9d86fd33c6
86 changed files with 2452 additions and 4500 deletions
17
pages/middle.go
Normal file
17
pages/middle.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package pages
|
||||
|
||||
import "time"
|
||||
|
||||
type MiddlewareConfig struct {
|
||||
Server string `json:"server"`
|
||||
Token string `json:"token"`
|
||||
Domain string `json:"domain"`
|
||||
Alias string `json:"alias"`
|
||||
CacheRefresh time.Duration `json:"cache_refresh"`
|
||||
CacheTimeout time.Duration `json:"cache_timeout"`
|
||||
ErrorPages map[string]string `json:"errors"`
|
||||
CustomHeaders map[string]string `json:"custom_headers"`
|
||||
AutoRedirect *AutoRedirect `json:"redirect"`
|
||||
SharedAlias bool `json:"shared_alias"`
|
||||
CacheMaxSize int `json:"cache_max_size"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue