mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
Basic HTTP Auth (#163).
This commit is contained in:
parent
513e79832a
commit
faeb8ae499
4 changed files with 125 additions and 4 deletions
|
@ -78,6 +78,8 @@ func Serve(ctx *cli.Context) error {
|
|||
challengeCache := cache.NewKeyValueCache()
|
||||
// canonicalDomainCache stores canonical domains
|
||||
canonicalDomainCache := cache.NewKeyValueCache()
|
||||
// authCache stores basic HTTP Auth credentials
|
||||
authCache := cache.NewKeyValueCache()
|
||||
// dnsLookupCache stores DNS lookups for custom domains
|
||||
dnsLookupCache := cache.NewKeyValueCache()
|
||||
// clientResponseCache stores responses from the Gitea server
|
||||
|
@ -93,7 +95,7 @@ func Serve(ctx *cli.Context) error {
|
|||
giteaClient,
|
||||
rawInfoPage,
|
||||
BlacklistedPaths, allowedCorsDomains,
|
||||
dnsLookupCache, canonicalDomainCache)
|
||||
dnsLookupCache, canonicalDomainCache, authCache)
|
||||
|
||||
httpHandler := server.SetupHTTPACMEChallengeServer(challengeCache)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue