mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-05-04 09:57:50 +00:00
remove use of rawInfoPage redirect (#261)
closes #244 Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/261 Co-authored-by: crapStone <crapstone01@gmail.com> Co-committed-by: crapStone <crapstone01@gmail.com>
This commit is contained in:
parent
cbb2ce6d07
commit
fffb8ffcb6
5 changed files with 8 additions and 15 deletions
cmd
|
@ -47,7 +47,6 @@ func Serve(ctx *cli.Context) error {
|
|||
rawDomain := ctx.String("raw-domain")
|
||||
defaultBranches := ctx.StringSlice("pages-branch")
|
||||
mainDomainSuffix := ctx.String("pages-domain")
|
||||
rawInfoPage := ctx.String("raw-info-page")
|
||||
listeningHost := ctx.String("host")
|
||||
listeningSSLPort := ctx.Uint("port")
|
||||
listeningSSLAddress := fmt.Sprintf("%s:%d", listeningHost, listeningSSLPort)
|
||||
|
@ -137,7 +136,6 @@ func Serve(ctx *cli.Context) error {
|
|||
// Create ssl handler based on settings
|
||||
sslHandler := handler.Handler(mainDomainSuffix, rawDomain,
|
||||
giteaClient,
|
||||
rawInfoPage,
|
||||
BlacklistedPaths, allowedCorsDomains,
|
||||
defaultBranches,
|
||||
dnsLookupCache, canonicalDomainCache, redirectsCache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue