Disable channels on binary cached based Hydra instances
This commit is contained in:
@ -25,6 +25,7 @@ our @EXPORT = qw(
|
||||
getResponsibleAuthors
|
||||
setCacheHeaders
|
||||
approxTableSize
|
||||
requireLocalStore
|
||||
);
|
||||
|
||||
|
||||
@ -343,4 +344,11 @@ sub approxTableSize {
|
||||
}
|
||||
|
||||
|
||||
sub requireLocalStore {
|
||||
my ($c) = @_;
|
||||
notFound($c, "Nix channels are not supported by this Hydra server.")
|
||||
if ($c->config->{store_mode} // "direct") ne "direct";
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
|
Reference in New Issue
Block a user