This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2017-10-01 23:30:48 +02:00
|
|
|
package config
|
|
|
|
|
2017-10-02 14:38:52 +02:00
|
|
|
import "dev.sum7.eu/genofire/yaja/model"
|
|
|
|
|
2017-10-01 23:30:48 +02:00
|
|
|
type Config struct {
|
2017-10-02 14:38:52 +02:00
|
|
|
TLSDir string `toml:"tlsdir"`
|
|
|
|
PortClient int `toml:"port_client"`
|
|
|
|
PortServer int `toml:"port_server"`
|
|
|
|
|
|
|
|
Domain []*Domain `toml:"domain"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Domain struct {
|
|
|
|
FQDN string `toml:"fqdn"`
|
|
|
|
Admins []*model.JID `toml:"admins"`
|
|
|
|
TLSDisable bool `toml:"tls_disable"`
|
|
|
|
TLSPrivate string `toml:"tls_private"`
|
|
|
|
TLSPublic string `toml:"tls_public"`
|
2017-10-01 23:30:48 +02:00
|
|
|
}
|