Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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
var DatabaseHost = getenv("TASKFORGE_DB_HOST", "localhost")
DatabaseHost is the hostname or IP address of the database
var DatabaseName = getenv("TASKFORGE_DB_NAME", "taskforge")
DatabaseName is the name of the Database taskforge should use
var DatabasePassword = getenv("TASKFORGE_DB_PASSWORD", "taskforge")
DatabasePassword is the password that taskforge should use to connect to the database
var DatabasePort = getenv("TASKFORGE_DB_PORT", "5432")
DatabasePort indicates which port should be used to connect to the database
var DatabaseUser = getenv("TASKFORGE_DB_USER", "taskforge")
DatabaseUser is the username that taskforge should use to connect to the database
var DebugMode = getenv("TASKFORGE_DEBUG", "") != ""
DebugMode detects if the server is run with debug logging turned on
var DisableStdoutLogging = getenv("TASKFORGE_DISABLE_STDOUT_LOGGING", "") != ""
DisableStdoutLogging indicates if logs should go to stdout
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
var LogFile = getenv("TASKFORGE_LOG_FILE", "")
LogFile indicates a log file which should be written to
var PasswordRounds = getenvinteger("TASKFORGE_PASSWORD_ROUNDS", bcrypt.DefaultCost)
PasswordRounds indicates how many rounds of salting Taskforge should use for passwords
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.