feat: added internal accessible argument to httpd and network-services configuration
This commit is contained in:
parent
6f70d3fedc
commit
480b6105af
2 changed files with 7 additions and 2 deletions
|
|
@ -35,7 +35,12 @@ in {
|
|||
options.public = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = "Whether the service should be publicly accessible.";
|
||||
description = "Whether the service should be publicly accessible over *.cpatino.com.";
|
||||
};
|
||||
options.internal = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = "Whether the service should be internally accessible over *.yumeami.sh.";
|
||||
};
|
||||
});
|
||||
default = {};
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ in {
|
|||
}
|
||||
|
||||
(networkingCfg.network-services
|
||||
|> filterAttrs (_: svc: svc.host == hostName)
|
||||
|> filterAttrs (_: svc: svc.host == hostName && svc.internal)
|
||||
|> mapAttrsToList (mkVirtualHost {
|
||||
domain = "*.yumeami.sh";
|
||||
useSSL = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue