config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseConnectionString = fmt.Sprintf(
	"postgres://%s:%s@%s:%s/%s",
	DatabaseUser,
	DatabasePassword,
	DatabaseHost,
	DatabasePort,
	DatabaseName,
)

DatabaseConnectionString is a pre-put together full database connection URL using all of the various database configuration options

View Source
var DatabaseHost = getenv("TASKFORGE_DB_HOST", "localhost")

DatabaseHost is the hostname or IP address of the database

View Source
var DatabaseName = getenv("TASKFORGE_DB_NAME", "taskforge")

DatabaseName is the name of the Database taskforge should use

View Source
var DatabasePassword = getenv("TASKFORGE_DB_PASSWORD", "taskforge")

DatabasePassword is the password that taskforge should use to connect to the database

View Source
var DatabasePort = getenv("TASKFORGE_DB_PORT", "5432")

DatabasePort indicates which port should be used to connect to the database

View Source
var DatabaseUser = getenv("TASKFORGE_DB_USER", "taskforge")

DatabaseUser is the username that taskforge should use to connect to the database

View Source
var DebugMode = getenv("TASKFORGE_DEBUG", "") != ""

DebugMode detects if the server is run with debug logging turned on

View Source
var DisableStdoutLogging = getenv("TASKFORGE_DISABLE_STDOUT_LOGGING", "") != ""

DisableStdoutLogging indicates if logs should go to stdout

View Source
var DomainName = getenv("TASKFORGE_HOSTNAME", "localhost")

DomainName is the domain name of the running taskforge server, this is used to set the issuer field for JWT tokens so that tokens cannot be used across Taskforge instances

View Source
var LogFile = getenv("TASKFORGE_LOG_FILE", "")

LogFile indicates a log file which should be written to

View Source
var PasswordRounds = getenvinteger("TASKFORGE_PASSWORD_ROUNDS", bcrypt.DefaultCost)

PasswordRounds indicates how many rounds of salting Taskforge should use for passwords

View Source
var TokenSigningKey = []byte(getenv("TASKFORGE_SIGNING_KEY", "dev"))

TokenSigningKey is the secret key used to sign JWT tokens

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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