Add settings for SMTP
This commit is contained in:
parent
007b2a375f
commit
cde37d1679
2 changed files with 20 additions and 8 deletions
internal/app
|
@ -4,24 +4,27 @@ import (
|
|||
"net/http"
|
||||
"sync"
|
||||
|
||||
"github.com/caarlos0/env"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"bitmask.me/skeleton/assets"
|
||||
"bitmask.me/skeleton/internal/database"
|
||||
"bitmask.me/skeleton/internal/storage"
|
||||
"bitmask.me/skeleton/internal/templates"
|
||||
"github.com/caarlos0/env"
|
||||
"github.com/jmoiron/sqlx"
|
||||
)
|
||||
|
||||
// Config contains all neccessary configuration for the App
|
||||
type Config struct {
|
||||
DatabaseDSN string `env:"DATABASE_DSN"`
|
||||
|
||||
S3Key string `env:"S3_KEY"`
|
||||
S3Secret string `env:"S3_SECRET"`
|
||||
S3Location string `env:"S3_LOCATION"`
|
||||
S3Endpoint string `env:"S3_ENDPOINT"`
|
||||
S3SSL bool `env:"S3_SSL"`
|
||||
S3Bucket string `env:"S3_BUCKET"`
|
||||
S3Key string `env:"S3_KEY"`
|
||||
S3Secret string `env:"S3_SECRET"`
|
||||
S3Location string `env:"S3_LOCATION"`
|
||||
S3Endpoint string `env:"S3_ENDPOINT"`
|
||||
S3SSL bool `env:"S3_SSL"`
|
||||
S3Bucket string `env:"S3_BUCKET"`
|
||||
SMTPServer string `env:"SMTP_SERVER"`
|
||||
SMTPUser string `env:"SMTP_USER"`
|
||||
SMTPPassword string `env:"SMTP_PASS"`
|
||||
}
|
||||
|
||||
// ConfigFromEnv loads the configuration from environment variables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue