Move web/task shutdown to container. Shutdown web before tasks. Add shutdown timeouts to config.

This commit is contained in:
mikestefanello 2025-02-16 09:39:29 -05:00
parent 4e5c5127e8
commit 732e81f5a4
4 changed files with 37 additions and 40 deletions

View file

@ -63,12 +63,13 @@ type (
// HTTPConfig stores HTTP configuration
HTTPConfig struct {
Hostname string
Port uint16
ReadTimeout time.Duration
WriteTimeout time.Duration
IdleTimeout time.Duration
TLS struct {
Hostname string
Port uint16
ReadTimeout time.Duration
WriteTimeout time.Duration
IdleTimeout time.Duration
ShutdownTimeout time.Duration
TLS struct {
Enabled bool
Certificate string
Key string
@ -109,6 +110,7 @@ type (
Goroutines int
ReleaseAfter time.Duration
CleanupInterval time.Duration
ShutdownTimeout time.Duration
}
// MailConfig stores the mail configuration