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"
|
2023-04-24 15:36:21 +01:00
|
|
|
"github.com/MrMelon54/violet/router"
|
2023-04-22 18:11:21 +01:00
|
|
|
"github.com/mrmelon54/mjwt"
|
|
|
|
)
|
|
|
|
|
2023-04-24 15:36:21 +01:00
|
|
|
// Conf stores the shared configuration for the API, HTTP and HTTPS servers.
|
2023-04-22 18:11:21 +01:00
|
|
|
type Conf struct {
|
2023-04-24 15:36:21 +01:00
|
|
|
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
|
2023-04-24 15:36:21 +01:00
|
|
|
Router *router.Manager
|
2023-04-22 18:11:21 +01:00
|
|
|
}
|