mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
Add TODOs
This commit is contained in:
parent
44c41c7459
commit
c4bae34b71
2 changed files with 9 additions and 0 deletions
|
@ -4,8 +4,12 @@ import "github.com/valyala/fasthttp"
|
|||
|
||||
// getTargetFromDNS searches for CNAME entries on the request domain, optionally with a "www." prefix, and checks if
|
||||
// the domain is included in the repository's "domains.txt" file. If everything is fine, it returns the target data.
|
||||
// TODO: use TXT records with A/AAAA/ALIAS
|
||||
func getTargetFromDNS(ctx *fasthttp.RequestCtx) (targetOwner, targetRepo, targetBranch, targetPath string) {
|
||||
// TODO: read CNAME record for host and "www.{host}" to get those values
|
||||
// TODO: check domains.txt
|
||||
return
|
||||
}
|
||||
|
||||
// TODO: cache domains.txt for 15 minutes
|
||||
// TODO: canonical domains - redirect to first domain if domains.txt exists, also make sure owner.codeberg.page/pages/... redirects to /...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue