Add a dex file (probably useless) and make onlyoffice be able to edit nextcloud files
This commit is contained in:
parent
4a967a6bab
commit
d4ae132157
31
nixos/server/package-configs/dex/configuration.nix
Normal file
31
nixos/server/package-configs/dex/configuration.nix
Normal 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`.
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -13,6 +13,7 @@
|
||||||
users.users = {
|
users.users = {
|
||||||
nextcloud.extraGroups = [config.users.groups.keys.name "aria2" "onlyoffice"];
|
nextcloud.extraGroups = [config.users.groups.keys.name "aria2" "onlyoffice"];
|
||||||
aria2.extraGroups = ["nextcloud"];
|
aria2.extraGroups = ["nextcloud"];
|
||||||
|
onlyoffice.extraGroups = ["nextcloud"];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable Nginx
|
# Enable Nginx
|
||||||
|
|
Loading…
Reference in a new issue