mirror of
https://gitea.com/gitea/gitea-mcp.git
synced 2025-08-23 14:23:05 +00:00
Add Dockerfile (#16)
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/16 Co-authored-by: hiifong <f@ilo.nz> Co-committed-by: hiifong <f@ilo.nz>
This commit is contained in:
@@ -80,6 +80,8 @@ func init() {
|
||||
flagPkg.Token = os.Getenv("GITEA_ACCESS_TOKEN")
|
||||
}
|
||||
|
||||
flagPkg.Mode = transport
|
||||
|
||||
if debug {
|
||||
flagPkg.Debug = debug
|
||||
}
|
||||
|
@@ -5,6 +5,7 @@ var (
|
||||
Port int
|
||||
Token string
|
||||
Version string
|
||||
Mode string
|
||||
|
||||
Debug bool
|
||||
)
|
||||
|
@@ -39,6 +39,10 @@ func Default() *zap.Logger {
|
||||
MaxAge: 30,
|
||||
}))
|
||||
|
||||
if flag.Mode == "sse" {
|
||||
wss = append(wss, zapcore.AddSync(os.Stdout))
|
||||
}
|
||||
|
||||
ws = zapcore.NewMultiWriteSyncer(wss...)
|
||||
|
||||
enc := zapcore.NewConsoleEncoder(ec)
|
||||
|
Reference in New Issue
Block a user