all repos — searchix @ a3cea0d9c64e759683207f55d1f534a330540b1a

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: enable linking to alternate instance via config

Alin
commit

a3cea0d9c64e759683207f55d1f534a330540b1a

parent

76dcd62d21e962479926f2f2b7dece202ea0b666

1 file changed, 6 insertions(+), 0 deletions(-)

changed files
M internal/config/structs.gointernal/config/structs.go
@@ -18,6 +18,11 @@ Web Web `comment:"Settings for the web server"`
Importer Importer `comment:"Settings for the import job"` } +type Link struct { + Name string `comment:"Human-readable name of link."` + URL URL `comment:"URL target."` +} + type Web struct { ContentSecurityPolicy CSP `comment:"Content-Security-Policy header to send with requests. Should only need changing if ExtraHeadHTML is used."` GracefulShutdownTimeout Duration `comment:"How long to wait for connections to finish before shutting down."`
@@ -30,6 +35,7 @@ ExtraHeadHTML string `comment:"Content to add to HTML <head>. Can be used to override styling, add scripts, etc."`
Headers map[string]string `comment:"Extra headers to send with HTTP requests"` LogRequests bool `comment:"Whether to log incoming HTTP requests"` SearchTimeout Duration `comment:"Timeout for search requests"` + OtherInstance *Link `comment:"Link to another instance (e.g. stable <-> unstable)."` } type Importer struct {