303a6bbcd0
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
43 lines
959 B
Go
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
|
|
}
|