config

package
v0.0.0-...-ca0f7d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Log struct {
		Level  string
		Format string
	}

	Server struct {
		Port string
	}

	Postgres struct {
		DSN string
	}

	Cors struct {
		AllowedOrigins string
	}

	Auth struct {
		SessionCookiesDomain            string
		AccessTokenSecretKey            string
		RefreshTokenSecretKey           string
		GoogleAuthClientID              string
		GoogleAuthClientSecret          string
		GoogleAuthCallbackRedirectURL   string
		FacebookAuthClientID            string
		FacebookAuthClientSecret        string
		FacebookAuthCallbackRedirectURL string
	}

	FrontendAppURL string

	NeedToCheckClient bool

	S3 struct {
		AccessKeyID     string
		SecretAccessKey string
		AWSRegion       string
		BucketName      string
	}

	MediaFilesPrefix string
}

Config type for config of whole application

func New

func New() Config

New create config which is based cli flags and env vars

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL