mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
7486517713
commit
9903866044
160 changed files with 4570 additions and 3019 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{meta, config, access, ...}: {
|
||||
{
|
||||
meta,
|
||||
config,
|
||||
access,
|
||||
...
|
||||
}: {
|
||||
imports = let
|
||||
inherit (meta) nixos;
|
||||
in [
|
||||
|
|
@ -24,13 +29,28 @@
|
|||
inherit (vouch'system.exports.services) vouch-proxy;
|
||||
in {
|
||||
"${keycloak.id}.${config.networking.domain}" = let
|
||||
portName = if keycloak.ports.https.enable then "https" else "http";
|
||||
portName =
|
||||
if keycloak.ports.https.enable
|
||||
then "https"
|
||||
else "http";
|
||||
in {
|
||||
service = access.proxyUrlFor { system = keycloak'system; service = keycloak; inherit portName; };
|
||||
originRequest.${if keycloak.ports.${portName}.protocol == "https" then "noTLSVerify" else null} = true;
|
||||
service = access.proxyUrlFor {
|
||||
system = keycloak'system;
|
||||
service = keycloak;
|
||||
inherit portName;
|
||||
};
|
||||
originRequest.${
|
||||
if keycloak.ports.${portName}.protocol == "https"
|
||||
then "noTLSVerify"
|
||||
else null
|
||||
} =
|
||||
true;
|
||||
};
|
||||
"${vouch-proxy.id}.${config.networking.domain}" = {
|
||||
service = access.proxyUrlFor { system = vouch'system; service = vouch-proxy; };
|
||||
service = access.proxyUrlFor {
|
||||
system = vouch'system;
|
||||
service = vouch-proxy;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue