Skip to content

Commit 6f21747

Browse files
committed
develop: cockpit: added fqdn to allowed-origin
1 parent 62336e7 commit 6f21747

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/nixos/cockpit/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ let
1313
mkDefault
1414
mkIf
1515
mkOption
16+
optional
1617
types
1718
;
1819
in
@@ -43,7 +44,9 @@ in
4344
};
4445
allowed-origins = [
4546
"http://localhost:${toString cfg.port}"
46-
];
47+
"http://${fqdn}"
48+
]
49+
++ optional (cfg.forceSSL) "https://${fqdn}";
4750
};
4851

4952
# https://github.com/NixOS/nixpkgs/issues/179676

0 commit comments

Comments
 (0)