From 26d2608a66a5997dc42976696186f88756d305ce Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sun, 12 Jun 2022 01:00:26 +0100 Subject: [PATCH] nixos/middleman: Add simple auth --- .../vms/shill/containers/middleman/default.nix | 6 ++++++ secrets/nginx-sso.yaml.age | Bin 645 -> 928 bytes 2 files changed, 6 insertions(+) diff --git a/nixos/boxes/colony/vms/shill/containers/middleman/default.nix b/nixos/boxes/colony/vms/shill/containers/middleman/default.nix index f837b55..5456167 100644 --- a/nixos/boxes/colony/vms/shill/containers/middleman/default.nix +++ b/nixos/boxes/colony/vms/shill/containers/middleman/default.nix @@ -70,6 +70,7 @@ default_method = "google_oauth"; names = { google_oauth = "Google account"; + simple = "Username / password"; }; }; cookie = { @@ -87,6 +88,11 @@ ]; }; providers = { + simple = { + groups = { + admin = [ "dev" ]; + }; + }; google_oauth = { client_id = "545475967061-cag4g1qf0pk33g3pdbom4v69562vboc8.apps.googleusercontent.com"; redirect_url = "https://sso.${lib.my.pubDomain}/login"; diff --git a/secrets/nginx-sso.yaml.age b/secrets/nginx-sso.yaml.age index 1af6255dbcbe7a10a45f980420aba284e4f8ceea..606dd6d86a3e43fe9d4db15b9284632ebd0674ca 100644 GIT binary patch delta 897 zcmV-{1AhF41)v9zEPr?~PI+2zI5KBuaB)UaR#AC$XDfD5OfhLUNLF+)K~_~za&c{P zNq2KGNeXpqd3i5wRd{T9SY}dKF*SHcHA`rAW_K%kX;))(Pi|snP)jyBRbyp$cM2^& zAXqXrH8D9LLo#72MOrycM09dwQg<|Zb82*0a9A&4Og2VQaDP~JSaWV@RZ(O!OHgh_ z3RZM%X-7FuQg2dnVP|MbXfZTWH)c*@R7GZaICnF3K~7?HGB9sYWMMT$3N1b$YHe{f zX)R}RWnpt=AR{4WAWkPxa|&uha9A~1WOs9PV?k#_LTxu;aY=P*IWa+0R%&BBNc@JF$3&WZP|Q-Fb0T{JXJSOhmG~?Za6Fe9LPzJbFhL zkD?Y6UVpGanMuw*BqE;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