violet/servers/conf.go

26 lines
731 B
Go
Raw Normal View History

2023-04-22 18:11:21 +01:00
package servers
import (
"database/sql"
"github.com/MrMelon54/violet/certs"
"github.com/MrMelon54/violet/domains"
errorPages "github.com/MrMelon54/violet/error-pages"
"github.com/MrMelon54/violet/favicons"
"github.com/MrMelon54/violet/router"
2023-04-22 18:11:21 +01:00
"github.com/mrmelon54/mjwt"
)
// Conf stores the shared configuration for the API, HTTP and HTTPS servers.
2023-04-22 18:11:21 +01:00
type Conf struct {
ApiListen string // api server listen address
HttpListen string // http server listen address
HttpsListen string // https server listen address
2023-04-22 18:11:21 +01:00
DB *sql.DB
Domains *domains.Domains
Certs *certs.Certs
Favicons *favicons.Favicons
Verify mjwt.Provider
ErrorPages *errorPages.ErrorPages
Router *router.Manager
2023-04-22 18:11:21 +01:00
}