diff --git a/morph/grid/local/config.json b/morph/grid/local/config.json index 197ffd69ab30b8059226eb624005e408f71187b5..7c4b95a5e66d4fce10213f555064f3423557cc05 100644 --- a/morph/grid/local/config.json +++ b/morph/grid/local/config.json @@ -2,7 +2,6 @@ , "ristrettoSigningKeyPath": "../../PrivateStorageSecrets/ristretto.signing-key" , "stripeSecretKeyPath": "../../PrivateStorageSecrets/privatestorageio-testing-stripe.secret" , "monitoringvpnSecretKeyDir": "../../PrivateStorageSecrets/monitoringvpn" -, "monitoringvpnPresharedKeyPath" : "../../PrivateStorageSecrets/monitoringvpn/preshared.key" , "passValue": 1000000 , "issuerDomain": "payments.localdev" , "letsEncryptAdminEmail": "florian@privatestorage.io" diff --git a/morph/lib/make-issuer.nix b/morph/lib/make-issuer.nix index cbaafd9cf27b1f9c20388789e40e1e13324d1d71..b15c0de84471d85ad1b35979b0f52a8fb4418ac4 100644 --- a/morph/lib/make-issuer.nix +++ b/morph/lib/make-issuer.nix @@ -2,7 +2,6 @@ , ristrettoSigningKeyPath , stripeSecretKeyPath , monitoringvpnSecretKeyDir -, monitoringvpnPresharedKeyPath , issuerDomain , letsEncryptAdminEmail , allowedChargeOrigins @@ -41,7 +40,7 @@ action = ["sudo" "systemctl" "restart" "wireguard-monitoringvpn.service"]; }; "monitoringvpn-preshared-key" = { - source = monitoringvpnPresharedKeyPath; + source = monitoringvpnSecretKeyDir + "/preshared.key"; destination = "/run/keys/monitoringvpn/preshared.key"; owner.user = "root"; owner.group = "root"; diff --git a/morph/lib/make-monitoring.nix b/morph/lib/make-monitoring.nix index 5fce2735396b009e4084f2a69718f51393c791ae..e3505a75b650c414495dc75106535e16c12aa76d 100644 --- a/morph/lib/make-monitoring.nix +++ b/morph/lib/make-monitoring.nix @@ -3,7 +3,6 @@ , publicStoragePort , ristrettoSigningKeyPath , monitoringvpnSecretKeyDir -, monitoringvpnPresharedKeyPath , passValue , sshUsers , stateVersion @@ -38,7 +37,7 @@ rec { action = ["sudo" "systemctl" "restart" "wireguard-monitoringvpn.service"]; }; "monitoringvpn-preshared-key" = { - source = monitoringvpnPresharedKeyPath; + source = monitoringvpnSecretKeyDir + "/preshared.key"; destination = "/run/keys/monitoringvpn/preshared.key"; owner.user = "root"; owner.group = "root"; diff --git a/morph/lib/make-testing.nix b/morph/lib/make-testing.nix index 26400097b744dae7c1a70d1c8211835301ebfddb..b0e131301cc6f69bceba3ef760f0275c9b019bf9 100644 --- a/morph/lib/make-testing.nix +++ b/morph/lib/make-testing.nix @@ -3,7 +3,6 @@ , publicStoragePort , ristrettoSigningKeyPath , monitoringvpnSecretKeyDir -, monitoringvpnPresharedKeyPath , passValue , sshUsers , stateVersion @@ -34,7 +33,7 @@ action = ["sudo" "systemctl" "restart" "wireguard-monitoringvpn.service"]; }; "monitoringvpn-preshared-key" = { - source = monitoringvpnPresharedKeyPath; + source = monitoringvpnSecretKeyDir + "/preshared.key"; destination = "/run/keys/monitoringvpn/preshared.key"; owner.user = "root"; owner.group = "root";