mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore(vouch): clean up local access
This commit is contained in:
parent
e4596f256f
commit
9274618cf0
9 changed files with 208 additions and 89 deletions
|
|
@ -69,10 +69,6 @@ in {
|
|||
credentialsFile = config.sops.secrets.cloudflared-tunnel-apartment.path;
|
||||
default = "http_status:404";
|
||||
ingress = listToAttrs [
|
||||
(ingressForNginx {
|
||||
host = config.networking.domain;
|
||||
inherit hostName;
|
||||
})
|
||||
(ingressForNginx {
|
||||
host = config.services.zigbee2mqtt.domain;
|
||||
inherit hostName;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,16 @@ in {
|
|||
./cloudflared.nix
|
||||
];
|
||||
|
||||
services.nginx = let
|
||||
inherit (config.services.nginx) access;
|
||||
in {
|
||||
virtualHosts = {
|
||||
${access.zigbee2mqtt.domain} = {
|
||||
local.denyGlobal = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sops.defaultSopsFile = ./secrets.yaml;
|
||||
|
||||
networking.firewall = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue