fix: dex: use method similar to lldap for sqlite storage
parent
b8d11783e8
commit
04dc7f766f
|
@ -180,9 +180,14 @@
|
||||||
users.users.dex = {
|
users.users.dex = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "dex";
|
group = "dex";
|
||||||
home = "/var/lib/dex/";
|
|
||||||
};
|
};
|
||||||
users.groups.dex = {};
|
users.groups.dex = {};
|
||||||
|
systemd.services.dex = {
|
||||||
|
StateDirectory = "dex";
|
||||||
|
WorkingDirectory = "%S/dex";
|
||||||
|
User = "dex";
|
||||||
|
Group = "dex";
|
||||||
|
};
|
||||||
services.dex = {
|
services.dex = {
|
||||||
enable = true;
|
enable = true;
|
||||||
environmentFile = config.age.secrets.DEX_ENVIRONMENT_FILE.path;
|
environmentFile = config.age.secrets.DEX_ENVIRONMENT_FILE.path;
|
||||||
|
@ -192,7 +197,7 @@
|
||||||
|
|
||||||
storage = {
|
storage = {
|
||||||
type = "sqlite3";
|
type = "sqlite3";
|
||||||
config.file = "/var/lib/dex/dex.db";
|
config.file = "./dex.db";
|
||||||
};
|
};
|
||||||
|
|
||||||
# services that can get a token from our dex instance
|
# services that can get a token from our dex instance
|
||||||
|
|
Loading…
Reference in New Issue