mirror of
https://github.com/1f349/violet.git
synced 2024-11-22 03:11:44 +00:00
26 lines
731 B
Go
26 lines
731 B
Go
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"
|
|
"github.com/mrmelon54/mjwt"
|
|
)
|
|
|
|
// Conf stores the shared configuration for the API, HTTP and HTTPS servers.
|
|
type Conf struct {
|
|
ApiListen string // api server listen address
|
|
HttpListen string // http server listen address
|
|
HttpsListen string // https server listen address
|
|
DB *sql.DB
|
|
Domains *domains.Domains
|
|
Certs *certs.Certs
|
|
Favicons *favicons.Favicons
|
|
Verify mjwt.Provider
|
|
ErrorPages *errorPages.ErrorPages
|
|
Router *router.Manager
|
|
}
|