internal/api: better multi-sites support; validate events against allowed domains
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iff1ced4966b4d42cfd6dfefb0cfd97696a6a6964
This commit is contained in:
parent
16ace569a0
commit
18fe1a8234
10 changed files with 542 additions and 35 deletions
|
|
@ -28,7 +28,7 @@ func Run(configPath string) error {
|
|||
return fmt.Errorf("failed to load config: %w", err)
|
||||
}
|
||||
|
||||
log.Printf("Loaded config for domain: %s", cfg.Site.Domain)
|
||||
log.Printf("Loaded config for domains: %v", cfg.Site.Domains)
|
||||
|
||||
// Initialize components
|
||||
pathNormalizer := normalize.NewPathNormalizer(cfg.Site.Path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue