mirror of
https://github.com/rls-moe/nyx
synced 2024-11-22 22:12:24 +00:00
Added basis for administration socket
This commit is contained in:
parent
1f92223497
commit
7b15e9755c
@ -44,6 +44,8 @@ type SiteConfig struct {
|
|||||||
type DBConfig struct {
|
type DBConfig struct {
|
||||||
File string `yaml:"file"`
|
File string `yaml:"file"`
|
||||||
ReadOnly bool `yaml:"read_only"`
|
ReadOnly bool `yaml:"read_only"`
|
||||||
|
AdminSocketEnable bool `yaml:"enable_admin_socket"`
|
||||||
|
AdminSocketPath string `yaml:"admin_socket"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func Load() (*Config, error) {
|
func Load() (*Config, error) {
|
||||||
@ -56,6 +58,8 @@ func Load() (*Config, error) {
|
|||||||
DB: DBConfig{
|
DB: DBConfig{
|
||||||
File: ":memory:",
|
File: ":memory:",
|
||||||
ReadOnly: false,
|
ReadOnly: false,
|
||||||
|
AdminSocketEnable: false,
|
||||||
|
AdminSocketPath: "./nyx.sock",
|
||||||
},
|
},
|
||||||
HostnameWhiteList: []string{},
|
HostnameWhiteList: []string{},
|
||||||
ListenOn: ":8080",
|
ListenOn: ":8080",
|
||||||
|
Loading…
Reference in New Issue
Block a user