all repos — searchix @ 078020ea68fd850a3d1dcfcdfbcb2ba61312161b

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: make server graceful shutdown timeout configurable

Alin
commit

078020ea68fd850a3d1dcfcdfbcb2ba61312161b

parent

be1d2e4688abc9637a4a9926291510a4b65f91c5

1 file changed, 11 insertions(+), 10 deletions(-)

changed files
M internal/config/structs.gointernal/config/structs.go
@@ -19,16 +19,17 @@ Importer Importer `comment:"Settings for the import job"`
} type Web struct { - ContentSecurityPolicy CSP `comment:"Content-Security-Policy header to send with requests. Should only need changing if ExtraHeadHTML is used."` - ListenAddress string `comment:"Which address or hostname to listen on. IPv6 addresses need square brackets."` - Port int `comment:"Port number to listen on."` - BaseURL URL `comment:"Absolute URL to this instance, useful if behind a reverse proxy"` - SentryDSN string `comment:"If set, will send server errors to Sentry"` - Environment string `comment:"Affects logging parameters. One of 'development' or 'production'"` - ExtraHeadHTML string `comment:"Content to add to HTML <head>. Can be used to override styling, add scripts, etc."` - Headers map[string]string `comment:"Extra headers to send with HTTP requests"` - LogRequests bool `comment:"Whether to log incoming HTTP requests"` - SearchTimeout Duration `comment:"Timeout for search requests"` + ContentSecurityPolicy CSP `comment:"Content-Security-Policy header to send with requests. Should only need changing if ExtraHeadHTML is used."` + GracefulShutdownTimeout Duration `comment:"How long to wait for connections to finish before shutting down."` + ListenAddress string `comment:"Which address or hostname to listen on. IPv6 addresses need square brackets."` + Port int `comment:"Port number to listen on."` + BaseURL URL `comment:"Absolute URL to this instance, useful if behind a reverse proxy"` + SentryDSN string `comment:"If set, will send server errors to Sentry"` + Environment string `comment:"Affects logging parameters. One of 'development' or 'production'"` + ExtraHeadHTML string `comment:"Content to add to HTML <head>. Can be used to override styling, add scripts, etc."` + Headers map[string]string `comment:"Extra headers to send with HTTP requests"` + LogRequests bool `comment:"Whether to log incoming HTTP requests"` + SearchTimeout Duration `comment:"Timeout for search requests"` } type Importer struct {