feat(ops): Add initial oauth2_proxy configuration
The intent is to configure oauth2_proxy pointing at Keycloak to enable usage with nginx auth_request directives. I want to expose this as a function from within the module in which nginx server configuration blocks can be wrapped, but the function for that is currently a placeholder. Change-Id: I5ed7deb9bf1c62818f516e68c33e8c5b632fccfe Reviewed-on: https://cl.tvl.fyi/c/depot/+/4767 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
parent
3806cea40b
commit
73288ba569
4 changed files with 58 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ in {
|
|||
"${depot.path}/ops/modules/irccat.nix"
|
||||
"${depot.path}/ops/modules/monorepo-gerrit.nix"
|
||||
"${depot.path}/ops/modules/nixery.nix"
|
||||
"${depot.path}/ops/modules/oauth2_proxy.nix"
|
||||
"${depot.path}/ops/modules/owothia.nix"
|
||||
"${depot.path}/ops/modules/panettone.nix"
|
||||
"${depot.path}/ops/modules/paroxysm.nix"
|
||||
|
|
@ -211,6 +212,7 @@ in {
|
|||
irccat.file = secretFile "irccat";
|
||||
keycloak-db.file = secretFile "keycloak-db";
|
||||
nix-cache-priv.file = secretFile "nix-cache-priv";
|
||||
oauth2_proxy.file = secretFile "oauth2_proxy";
|
||||
owothia.file = secretFile "owothia";
|
||||
panettone.file = secretFile "panettone";
|
||||
smtprelay.file = secretFile "smtprelay";
|
||||
|
|
@ -396,6 +398,9 @@ in {
|
|||
|
||||
# Run autosubmit bot for Gerrit
|
||||
gerrit-queue.enable = true;
|
||||
|
||||
# Run oauth2_proxy for internal service auth
|
||||
oauth2_proxy.enable = true;
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue