1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-17 00:17:59 +02:00

Scale db middleware

Ensure the database is active and has not been auto paused by RDS.
Resume database for signup and login pages.
This commit is contained in:
Lee Brown
2019-10-26 16:52:38 -08:00
parent 2b93f2e3b4
commit 28cf4924ff
7 changed files with 271 additions and 13 deletions

View File

@ -104,7 +104,7 @@ func main() {
TemplateDir string `default:"./templates" envconfig:"TEMPLATE_DIR"`
DebugHost string `default:"0.0.0.0:4000" envconfig:"DEBUG_HOST"`
ShutdownTimeout time.Duration `default:"5s" envconfig:"SHUTDOWN_TIMEOUT"`
ScaleToZero time.Duration `envconfig:"SCALE_TO_ZERO"`
ScaleToZero time.Duration `envconfig:"SCALE_TO_ZERO"`
}
Project struct {
Name string `default:"" envconfig:"PROJECT_NAME"`