Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultListen = ":8051" LetsEncryptDir = "letsencrypt" )
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Name string `yaml:"name"`
Path string `yaml:"path"` // App path, optional?
Entrypoint string `yaml:"entrypoint"`
Domain string `yaml:"domain"`
Username string `yaml:"username"`
Password string `yaml:"password"`
IndieAuthEndpoint string `yaml:"indieauth_endpoint"`
Proxy string `yaml:"proxy"`
Remote string `yaml:"remote"`
Scheduled string `yaml:"scheduled"`
Config map[string]interface{} `yaml:"config"`
}
AppConfig holds an app configuration items
type Config ¶
type Config struct {
Listen string `yaml:"listen"`
LogLevel string `yaml:"log_level"`
// TLS bool `yaml:"tls"`
AutoTLS bool `yaml:"tls_auto"`
Domains []string `yaml:"tls_domains"`
Roles []*Role `yaml:"roles"`
Auth []*BasicAuth
ExpvarListen string `yaml:"expvar_server_listen"`
ExtraApacheCombinedLogs string `yaml:"extra_apache_combined_logs"`
SharingKey string `yaml:"sharing_key"`
DataDir string `yaml:"data_dir"`
S3Repl *S3Repl `yaml:"s3_replication"`
Apps []*AppConfig `yaml:"apps"`
Docstore *DocstoreConfig `yaml:"docstore"`
Replication *Replication `yaml:"replication"`
ReplicateFrom *ReplicateFrom `yaml:"replicate_from"`
SecretKey string `yaml:"secret_key"`
// Items defined with the CLI flags
CheckMode bool `yaml:"-"`
ScanMode bool `yaml:"-"`
S3ScanMode bool `yaml:"-"`
S3RestoreMode bool `yaml:"-"`
DocstoreIndexesReindexMode bool `yaml:"-"`
// contains filtered or unexported fields
}
Config holds the configuration items
type DocstoreConfig ¶
type DocstoreConfig struct {
SortIndexes map[string]map[string]*DocstoreSortIndex `yaml:"sort_indexes"`
}
type DocstoreSortIndex ¶
type DocstoreSortIndex struct {
Field string `yaml:"field"`
}
type ReplicateFrom ¶
type Replication ¶
type Replication struct {
EnableOplog bool `yaml:"enable_oplog"`
}
Click to show internal directories.
Click to hide internal directories.