Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultPort the default port DefaultPort = "3000" // DefaultDataDir default folder for storage DefaultDataDir = "data" // ReadStorageExpirationInMinutes time the token is valid ReadStorageExpirationInMinutes = 5 // WriteStorageExpirationInMinutes time the token is valid WriteStorageExpirationInMinutes = 5 // DefaultHost fake url DefaultHost = "local.appspot.com" // EnvLogLevel environment variable for the log level EnvLogLevel = "LOGLEVEL" // EnvLogFormat type of log format EnvLogFormat = "LOGFORMAT" // EnvStorageURL the external name of the service EnvStorageURL = "STORAGE_URL" // EnvLogFile log file to use EnvLogFile = "RM_LOGFILE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Port string StorageURL string DataDir string RegistrationOpen bool CreateFirstUser bool JWTSecretKey []byte JWTRandom bool Certificate tls.Certificate SMTPConfig *email.SMTPConfig LogFile string HWRApplicationKey string HWRHmac string HTTPSCookie bool TrustProxy bool }
Config config
Click to show internal directories.
Click to hide internal directories.