init of authentik-outpost
This commit is contained in:
parent
f76e3a10e3
commit
0b946ffef4
1 changed files with 33 additions and 0 deletions
33
modules/authentik-outpost.nix
Normal file
33
modules/authentik-outpost.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.authentik-outpost;
|
||||
conf = import ./vars.nix;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
services.authentik-outpost = {
|
||||
token = mkOption {
|
||||
type = types.str;
|
||||
description = "The authentik_token as displayed in authentik.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
virtualisation.oci-containers.containers."authentik-outpost" = {
|
||||
image = "ghcr.io/goauthentik/proxy";
|
||||
ports = [ "9001:9000" ];
|
||||
environment = {
|
||||
AUTHENTIK_HOST = "https://${conf.authentik.domain}";
|
||||
AUTHENTIK_INSECURE = "false";
|
||||
AUTHENTIK_DEBUG = "true";
|
||||
AUTHENTIK_TOKEN = cfg.token;
|
||||
};
|
||||
extraOptions = conf.podman.extraOptions;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
# vim: set et ts=2 sw=2 ai:
|
||||
Loading…
Add table
Reference in a new issue