refactor(self_host/nextcloud): formting using one instruction by line

This commit is contained in:
Raphael 2025-10-19 21:13:47 +02:00
parent cdbee2f338
commit 53ec804d37
No known key found for this signature in database

View file

@ -16,8 +16,9 @@ in
]; ];
users = { users = {
groups.datausers = { }; groups.datausers = { };
users = { users.nextcloud.extraGroups = [
nextcloud.extraGroups = [ "datausers" ]; "datausers"
];
}; };
}; };
@ -36,18 +37,39 @@ in
adminuser = "OwnedByTheEniumTeam"; adminuser = "OwnedByTheEniumTeam";
dbtype = "sqlite"; dbtype = "sqlite";
}; };
extraApps = {
oidc_login.enable = true;
};
settings = { settings = {
trusted_domains = [ trusted_domains = [
"192.168.1.254" "192.168.1.254"
"nextcloud.enium.eu"
]; ];
default_phone_region = "FR"; default_phone_region = "FR";
"oidc_login_provider_url" = "https://auth.enium.eu/application/o/nextcloud/";
"oidc_login_client_id" = "xxxxxxxxxxxx";
"oidc_login_client_secret" = "yyyyyyyyyyyy";
"oidc_login_end_session_redirect" = true;
"oidc_login_auto_redirect" = true;
"oidc_login_hide_password_form" = true;
"oidc_login_use_id_token" = true;
"oidc_login_scope" = "openid profile email";
"oidc_login_disable_registration" = false;
"oidc_login_button_text" = "Se connecter avec Enium";
"oidc_login_default_group" = "";
"oidc_login_unique_id_claim" = "sub";
"oidc_login_mapping_displayname" = "name";
"oidc_login_mapping_email" = "email";
}; };
}; };
nginx.virtualHosts."nextcloud.enium.eu".enableACME = true; };
nginx.virtualHosts."nextcloud.enium.eu".forceSSL = true; nginx.virtualHosts."nextcloud.enium.eu" = {
nginx.virtualHosts."nextcloud.enium.eu".locations."~ \.php$".extraConfig = '' enableACME = true;
forceSSL = true;
locations."~ \.php$".extraConfig = ''
fastcgi_pass unix:/run/phpfpm-nextcloud.sock; fastcgi_pass unix:/run/phpfpm-nextcloud.sock;
''; '';
}; };
}; };
};
} }