Documentation ¶
Overview ¶
Package config implements a global configuration to be used with gophish.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = ""
Version contains the current gophish version
Functions ¶
func LoadConfig ¶ added in v0.4.0
func LoadConfig(filepath string)
LoadConfig loads the configuration from the specified filepath
Types ¶
type AdminServer ¶
type AdminServer struct { ListenURL string `json:"listen_url"` UseTLS bool `json:"use_tls"` CertPath string `json:"cert_path"` KeyPath string `json:"key_path"` }
AdminServer represents the Admin server configuration details
type Config ¶
type Config struct { AdminConf AdminServer `json:"admin_server"` PhishConf PhishServer `json:"phish_server"` DBName string `json:"db_name"` DBPath string `json:"db_path"` MigrationsPath string `json:"migrations_prefix"` TestFlag bool `json:"test_flag"` }
Config represents the configuration information.
var Conf Config
Conf contains the initialized configuration struct
Click to show internal directories.
Click to hide internal directories.