func (a *Application) Setup() {
	a.Config.FromEnv()
	a.Config.FromParameter()
	log.SetupLogger(a.Config.LogLevel, a.Config.LogFormatter)
	db.DBTablePrefix = a.Config.TablePrefix
	var err error
	a.DynamoDB, err = db.NewDynamoDB(&a.Config.DynamoDB, a.Config.Bootstrap)
	if err != nil {
		log.Fatalf("Can't setup db connection %#v", err)
	}
	a.Certificates = certificate.NewManager(a.DynamoDB, a.Config.StagingCA)
	a.Certificates.CertCache.UpdateDomainCache()
	a.Certificates.CertCache.Observe()
}
Setup the application configuration
package app
import (
	"os"
	"os/signal"
	"syscall"
	"github.com/axelspringer/swerve/src/certificate"
	"github.com/axelspringer/swerve/src/configuration"
	"github.com/axelspringer/swerve/src/db"
	"github.com/axelspringer/swerve/src/log"
	"github.com/axelspringer/swerve/src/server"
)