fork from codeberg.org

This commit is contained in:
“xHuPo” 2024-09-12 18:35:01 +08:00
commit 50a258ea59
67 changed files with 4587 additions and 0 deletions

26
config/config.go Normal file
View file

@ -0,0 +1,26 @@
package config
type Config struct {
LogLevel string `default:"warn"`
Server ServerConfig
Forge ForgeConfig
}
type ServerConfig struct {
Host string `default:"127.0.0.1"`
Port uint16 `default:"8080"`
MainDomain string
RawDomain string
PagesBranches []string
AllowedCorsDomains []string
BlacklistedPaths []string
}
type ForgeConfig struct {
Root string
Token string
LFSEnabled bool `default:"false"`
FollowSymlinks bool `default:"false"`
DefaultMimeType string `default:"application/octet-stream"`
ForbiddenMimeTypes []string
}