refactor: modify httpd to expose public endpoints on being set public gateway
Some checks failed
ci / treefmt (push) Failing after 5m0s
Some checks failed
ci / treefmt (push) Failing after 5m0s
This commit is contained in:
parent
454f339ed6
commit
a889dbc0f8
2 changed files with 4 additions and 2 deletions
|
|
@ -35,6 +35,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
gateways = ["shiori"];
|
||||
|
||||
network-services = {
|
||||
arisu = {
|
||||
jellyfin = {
|
||||
|
|
|
|||
|
|
@ -211,13 +211,13 @@ in {
|
|||
svc)
|
||||
|> listToAttrs)
|
||||
|
||||
(mkIf networkingCfg.cloudflared.enable (
|
||||
(mkIf (builtins.elem hostName networkingCfg.gateways) (
|
||||
networkServicesFlat
|
||||
|> filterAttrs (_: svc: svc.public)
|
||||
|> mapAttrsToList (name: svc:
|
||||
(mkVirtualHost {
|
||||
domain = "*.cpatino.com";
|
||||
useSSL = false;
|
||||
useSSL = true;
|
||||
injectHoneypot = true;
|
||||
})
|
||||
svc.host
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue