 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
Variables ¶
      View Source
      
  
var ( // App settings. Env = DEV AppUrl string AppSubUrl string InstanceName string // build BuildVersion string BuildCommit string BuildStamp int64 Enterprise bool ApplicationName string // Paths LogsPath string HomePath string DataPath string PluginsPath string CustomInitPath = "conf/custom.ini" // Log settings. LogModes []string LogConfigs []util.DynMap // Http server options Protocol Scheme Domain string HttpAddr, HttpPort string SshPort int CertFile, KeyFile string SocketPath string RouterLogging bool DataProxyLogging bool StaticRootPath string EnableGzip bool EnforceDomain bool // Security settings. SecretKey string LogInRememberDays int CookieUserName string CookieRememberName string DisableGravatar bool EmailCodeValidMinutes int DataProxyWhiteList map[string]bool DisableBruteForceLoginProtection bool // Snapshots ExternalSnapshotUrl string ExternalSnapshotName string ExternalEnabled bool SnapShotRemoveExpired bool // Dashboard history DashboardVersionsToKeep int // User settings AllowUserSignUp bool AllowUserOrgCreate bool AutoAssignOrg bool AutoAssignOrgRole string VerifyEmailEnabled bool LoginHint string DefaultTheme string DisableLoginForm bool DisableSignoutMenu bool SignoutRedirectUrl string ExternalUserMngLinkUrl string ExternalUserMngLinkName string ExternalUserMngInfo string ViewersCanEdit bool // Http auth AdminUser string AdminPassword string AnonymousEnabled bool AnonymousOrgName string AnonymousOrgRole string // Auth proxy settings AuthProxyEnabled bool AuthProxyHeaderName string AuthProxyHeaderProperty string AuthProxyAutoSignUp bool AuthProxyLdapSyncTtl int AuthProxyWhitelist string AuthProxyHeaders map[string]string // Basic Auth BasicAuthEnabled bool // Plugin settings PluginAppsSkipVerifyTLS bool // Session settings. SessionOptions session.Options SessionConnMaxLifetime int64 // Global setting objects. Raw *ini.File ConfRootPath string IsWindows bool ReportingEnabled bool CheckForUpdates bool GoogleAnalyticsId string GoogleTagManagerId string // LDAP LdapEnabled bool LdapConfigFile string LdapAllowSignup = true // QUOTA Quota QuotaSettings // Alerting AlertingEnabled bool ExecuteAlerts bool // Explore UI ExploreEnabled bool // Grafana.NET URL GrafanaComUrl string // S3 temp image store S3TempImageStoreBucketUrl string S3TempImageStoreAccessKey string S3TempImageStoreSecretKey string ImageUploadProvider string )
Functions ¶
Types ¶
type Cfg ¶
type Cfg struct {
	Raw *ini.File
	// Paths
	ProvisioningPath string
	// SMTP email settings
	Smtp SmtpSettings
	// Rendering
	ImagesDir                        string
	PhantomDir                       string
	RendererUrl                      string
	DisableBruteForceLoginProtection bool
}
    func (*Cfg) Load ¶
func (cfg *Cfg) Load(args *CommandLineArgs) error
type GlobalQuota ¶
type GlobalQuota struct {
	Org        int64 `target:"org"`
	User       int64 `target:"user"`
	DataSource int64 `target:"data_source"`
	Dashboard  int64 `target:"dashboard"`
	ApiKey     int64 `target:"api_key"`
	Session    int64 `target:"-"`
}
    func (*GlobalQuota) ToMap ¶
func (q *GlobalQuota) ToMap() map[string]int64
type OAuthInfo ¶
type OrgQuota ¶
type QuotaSettings ¶
type QuotaSettings struct {
	Enabled bool
	Org     *OrgQuota
	User    *UserQuota
	Global  *GlobalQuota
}
    type SmtpSettings ¶
       Source Files
      ¶
      Source Files
      ¶
    
- setting.go
- setting_oauth.go
- setting_quota.go
- setting_smtp.go
 Click to show internal directories. 
   Click to hide internal directories.