violet/servers/conf/conf.go

24 lines
636 B
Go
Raw Normal View History

package conf
2023-04-22 18:11:21 +01:00
import (
"github.com/1f349/mjwt"
"github.com/1f349/violet/database"
2023-07-22 01:11:47 +01:00
errorPages "github.com/1f349/violet/error-pages"
"github.com/1f349/violet/favicons"
"github.com/1f349/violet/router"
"github.com/1f349/violet/utils"
2023-04-22 18:11: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 {
2024-08-17 12:29:50 +01:00
RateLimit uint64 // rate limit per minute
DB *database.Queries
Domains utils.DomainProvider
Acme utils.AcmeChallengeProvider
Certs utils.CertProvider
Favicons *favicons.Favicons
Signer mjwt.Verifier
ErrorPages *errorPages.ErrorPages
Router *router.Manager
2023-04-22 18:11:21 +01:00
}