web02: move secrets to sops

This commit is contained in:
zowoq 2024-12-19 10:42:30 +10:00
parent bcdbe40580
commit 632d80837c
8 changed files with 76 additions and 38 deletions
modules/nixos/monitoring

View file

@ -1,7 +1,6 @@
{ config, inputs, ... }:
{ config, ... }:
{
age.secrets.oauth2-proxy-key-file = {
file = "${inputs.self}/secrets/oauth2-proxy-key-file.age";
sops.secrets.oauth2-proxy-key-file = {
owner = "oauth2-proxy";
};
@ -14,7 +13,7 @@
team = "admin";
};
clientID = "Ov23liKOQPREko8sCk6F";
keyFile = config.age.secrets.oauth2-proxy-key-file.path;
keyFile = config.sops.secrets.oauth2-proxy-key-file.path;
nginx.domain = "alertmanager.nix-community.org";
nginx.virtualHosts = {
"alertmanager.nix-community.org" = { };