Add a dex file (probably useless) and make onlyoffice be able to edit nextcloud files

This commit is contained in:
Lillian Violet 2024-01-08 00:46:04 +01:00
parent 4a967a6bab
commit d4ae132157
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
config,
pkgs,
...
}: {
services.dex = {
enable = true;
# You can add secret files here
environmentFile = null;
settings = {
# External url
issuer = "http://127.0.0.1:5556/dex";
storage = {
type = "postgres";
config.host = "/var/run/postgres";
};
web = {
http = "127.0.0.1:5556";
};
enablePasswordDB = true;
staticClients = [
{
id = "oidcclient";
name = "Client";
redirectURIs = ["https://example.com/callback"];
secretFile = "/etc/dex/oidcclient"; # The content of `secretFile` will be written into to the config as `secret`.
}
];
};
};
}

View file

@ -13,6 +13,7 @@
users.users = {
nextcloud.extraGroups = [config.users.groups.keys.name "aria2" "onlyoffice"];
aria2.extraGroups = ["nextcloud"];
onlyoffice.extraGroups = ["nextcloud"];
};
# Enable Nginx