gophi/config.go
kim (grufwub) 303a6bbcd0 remove in-line shell command support, add initial remap (according to regex) support
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 13:48:21 +01:00

43 lines
959 B
Go

package main
import (
"time"
)
/* ServerConfig:
* Holds onto global server configuration details
* and any data objects we want to keep in memory
* (e.g. loggers, restricted files regular expressions
* and file cache)
*/
type ServerConfig struct {
/* Executable Settings */
Env []string
CgiEnv []string
CgiEnabled bool
MaxExecRunTime time.Duration
/* Content settings */
CharSet string
FooterText []byte
PageWidth int
/* Logging */
SysLog LoggerInterface
AccLog LoggerInterface
/* Filesystem access */
FileSystem *FileSystem
/* Buffer sizes */
SocketWriteBufSize int
SocketReadBufSize int
SocketReadMax int
SkipPrefixBufSize int
FileReadBufSize int
/* Socket deadlines */
SocketReadDeadline time.Duration
SocketWriteDeadline time.Duration
}