add dex
This commit is contained in:
parent
3670aab583
commit
6535ca50af
1 changed files with 41 additions and 0 deletions
41
machines/core-services-01/dex.nix
Normal file
41
machines/core-services-01/dex.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
my = config.my
|
||||
in
|
||||
{
|
||||
services.dex = {
|
||||
enable = true;
|
||||
settings = {
|
||||
issuer = "";
|
||||
storage = {
|
||||
type = "sqlite3";
|
||||
config.file = "gitea/dex.db";
|
||||
};
|
||||
enablePasswordDB = true;
|
||||
/*
|
||||
web = {
|
||||
http = "";
|
||||
};
|
||||
staticClients = [
|
||||
{
|
||||
id = "oidcclient";
|
||||
name = "Client";
|
||||
redirectURIs = [ "/callback" ];
|
||||
secretFile = "/etc/dex/oidcclient";
|
||||
}
|
||||
];
|
||||
*/
|
||||
connectors = {
|
||||
type = "gitea";
|
||||
id = "gitea";
|
||||
name = "Gitea";
|
||||
config = {
|
||||
clientID = ;
|
||||
clientSecret = ;
|
||||
redirectURL = "http://127.0.0.1:5556/dex/callback";
|
||||
baseURL = "https://git.${my.subZone}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue