diff --git a/dist/.env b/dist/.env index 7b0a199..9c0cf2c 100644 --- a/dist/.env +++ b/dist/.env @@ -7,8 +7,8 @@ dbUserPass=changemetoo domain=localhost #use echo $(htpasswd -nb username password) to generate the the creds -dashboardcreds=reallycoolname:$apr1$vrqMeki4$VnVojXpoCz5XUJqUPL/ZN1 -db_access_creds=reallycoolname:$apr1$d9E3YJGl$H.dPmMISUYqayf3TpBNEW/ +dashboardcreds=user:$apr1$MexAolZ7$qu78x6Ljq4AZjYCqgiyGn. +db_access_creds=user:$apr1$MexAolZ7$qu78x6Ljq4AZjYCqgiyGn. #db_access_creds is a http layer in front of adminer, so you need 2 layers of authentication before accessing the db acme_email=hello@example.com diff --git a/dist/docker-compose.yml b/dist/docker-compose.yml index ef88e2e..d27a465 100644 --- a/dist/docker-compose.yml +++ b/dist/docker-compose.yml @@ -22,7 +22,7 @@ services: #SSl - "--certificatesresolvers.myresolver.acme.tlschallenge=true" - # - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" + - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory" - "--certificatesresolvers.myresolver.acme.email=${acme_email}" - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json" labels: @@ -45,6 +45,7 @@ services: - "/var/run/docker.sock:/var/run/docker.sock:ro" networks: - web + restart: on-failure ffserver: image: ghcr.io/fastforwardteam/server:latest diff --git a/src/main.go b/src/main.go index c8d0d10..510c49e 100644 --- a/src/main.go +++ b/src/main.go @@ -55,10 +55,13 @@ func main() { parseEnv() logStart() - connectDb() + err := connectDb() + if err != nil { + logger.Fatalln(err) + } //check connection to db - err := db.Ping() + err = db.Ping() if err != nil { logger.Fatalln(err) }