@@ -28,7 +28,7 @@ in
|
||||
allowed-origins = lib.mkOption {
|
||||
type = types.listOf types.str;
|
||||
|
||||
default = [];
|
||||
default = [ ];
|
||||
|
||||
description = ''
|
||||
List of allowed origins.
|
||||
@@ -98,7 +98,8 @@ in
|
||||
"https://localhost:${toString config.services.cockpit.port}"
|
||||
];
|
||||
|
||||
services.cockpit.settings.WebService.Origins = builtins.concatStringsSep " " config.services.cockpit.allowed-origins;
|
||||
services.cockpit.settings.WebService.Origins =
|
||||
builtins.concatStringsSep " " config.services.cockpit.allowed-origins;
|
||||
};
|
||||
|
||||
meta.maintainers = pkgs.cockpit.meta.maintainers;
|
||||
|
||||
@@ -125,7 +125,7 @@ import ./make-test-python.nix (
|
||||
if 'admin' in button.text:
|
||||
button.click()
|
||||
driver.switch_to.default_content()
|
||||
|
||||
|
||||
log("Checking that /nonexistent is not a thing")
|
||||
assert '/nonexistent' not in driver.page_source
|
||||
assert len(driver.find_elements(By.CSS_SELECTOR, '#machine-reconnect')) == 0
|
||||
|
||||
@@ -180,10 +180,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
patchShebangs $out/share/cockpit/issue/update-issue
|
||||
wrapProgram $out/share/cockpit/issue/update-issue \
|
||||
--prefix PATH : ${lib.makeBinPath [
|
||||
iproute2
|
||||
gnused
|
||||
]}
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
iproute2
|
||||
gnused
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
substituteInPlace $out/${python3Packages.python.sitePackages}/cockpit/_vendor/systemd_ctypes/libsystemd.py \
|
||||
|
||||
Reference in New Issue
Block a user