mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
24w18e
This commit is contained in:
parent
c50f23c399
commit
e5d941414e
11 changed files with 51 additions and 9 deletions
|
|
@ -6,6 +6,7 @@ import (
|
|||
|
||||
type Config struct {
|
||||
Server ServerConfig
|
||||
Page PageConfig
|
||||
Log LogConfig
|
||||
CORS CORSConfig
|
||||
Auth AuthConfig
|
||||
|
|
@ -19,6 +20,11 @@ type ServerConfig struct {
|
|||
SizeLimit int `toml:"sizeLimit"`
|
||||
}
|
||||
|
||||
type PageConfig struct {
|
||||
Enabled bool `toml:"enabled"`
|
||||
StaticDir string `toml:"staticDir"`
|
||||
}
|
||||
|
||||
type LogConfig struct {
|
||||
LogFilePath string `toml:"logFilePath"`
|
||||
MaxLogSize int `toml:"maxLogSize"`
|
||||
|
|
|
|||
|
|
@ -3,6 +3,10 @@ host = "127.0.0.1"
|
|||
port = 8080
|
||||
sizeLimit = 131072000 # 125MB
|
||||
|
||||
[page]
|
||||
enabled = true
|
||||
staticDir = "/data/www"
|
||||
|
||||
[log]
|
||||
logFilePath = "/data/ghproxy/log/ghproxy.log"
|
||||
maxLogSize = 5 # MB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue