2023-07-12 16:55:09 +01:00
|
|
|
package conf
|
2023-04-22 18:11:21 +01:00
|
|
|
|
|
|
|
import (
|
2023-10-29 12:55:19 +00:00
|
|
|
"github.com/1f349/mjwt"
|
2024-03-08 16:05:39 +00:00
|
|
|
"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
|
|
|
)
|
|
|
|
|
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 {
|
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
|
|
|
}
|