From 12d5d45a7894c3f6b6d598f9447de839d31436ef Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 20 May 2024 19:57:13 +0200 Subject: docs: add comments to default configuration --- internal/config/config.go | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index 9ab7ab5..a0a05eb 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -1,7 +1,6 @@ package config import ( - "html/template" "log/slog" "maps" "net/url" @@ -94,30 +93,6 @@ func mustLocalTime(in string) (time LocalTime) { return } -type Web struct { - ContentSecurityPolicy CSP - ListenAddress string - Port int - BaseURL URL - SentryDSN string - Environment string - ExtraHeadHTML template.HTML - Headers map[string]string -} - -type Importer struct { - Sources map[string]*Source - Timeout Duration - UpdateAt LocalTime -} - -type Config struct { - DataPath string - LogLevel slog.Level - Web *Web - Importer *Importer -} - var nixpkgs = Repository{ Type: "github", Owner: "NixOS", -- cgit 1.4.1