secrets.hosts

This commit is contained in:
Casper V. Kristensen 2024-05-10 18:50:22 +02:00
parent aec0ac95d5
commit a990c2ea3a
5 changed files with 6 additions and 6 deletions

View file

@ -70,7 +70,7 @@
wireguardPeerConfig = {
PublicKey = "sigmaH/DKSU8KWyrPtucYmS2ewUvDvCNLxd/qYEo0n0=";
PresharedKeyFile = config.age.secrets.wireguard-preshared-key-file.path;
AllowedIPs = ["${secrets.alpha.sigma-p2p-ip-address}/32"];
AllowedIPs = ["${secrets.hosts.alpha.sigma-p2p-ip-address}/32"];
RouteTable = "main";
};
}

View file

@ -1,5 +1,5 @@
{secrets, ...}: {
services.caddy.virtualHosts = secrets.sigma.caddy.virtualHosts;
services.caddy.virtualHosts = secrets.hosts.sigma.caddy.virtualHosts;
# Add caddy to the 'torrent' group to allow viewing downloads
users.groups.torrent.members = ["caddy"];

View file

@ -18,7 +18,7 @@
config = {
download_location = "/srv/torrents/downloads/";
# use the dedicated network interface and port
listen_interface = secrets.sigma.sigma-p2p-ip-address;
listen_interface = secrets.hosts.sigma.sigma-p2p-ip-address;
outgoing_interface = "wg-sigma-p2p";
random_port = false;
listen_ports = [60881];

View file

@ -75,7 +75,7 @@
loginAccounts = {
"casper@vkristensen.dk" = {
hashedPasswordFile = config.age.secrets.mail-hashed-password-file.path;
aliases = secrets.sigma.mail.aliases;
aliases = secrets.hosts.sigma.mail.aliases;
};
};
};

View file

@ -109,7 +109,7 @@
};
networks."wg-sigma-p2p" = {
name = "wg-sigma-p2p";
address = ["${secrets.sigma.sigma-p2p-ip-address}/32"];
address = ["${secrets.hosts.sigma.sigma-p2p-ip-address}/32"];
routingPolicyRules = [
{
# The deluge systemd service has
@ -124,7 +124,7 @@
{
routingPolicyRuleConfig = {
Priority = 1000;
From = "${secrets.sigma.sigma-p2p-ip-address}/32";
From = "${secrets.hosts.sigma.sigma-p2p-ip-address}/32";
Table = "wg-sigma-p2p";
};
}