Adding nextcloud
This commit is contained in:
parent
d2a132bf0a
commit
7893349400
6 changed files with 66 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
../../modules/server/link
|
../../modules/server/link
|
||||||
../../modules/server/taf
|
../../modules/server/taf
|
||||||
../../modules/server/giovanni
|
../../modules/server/giovanni
|
||||||
|
../../modules/server/baba
|
||||||
|
|
||||||
# disko.nixosModules.disko
|
# disko.nixosModules.disko
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,14 @@
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
|
"lyes.eu" = {
|
||||||
|
default = true;
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
root = "/var/data/www/lyes.eu/";
|
||||||
|
};
|
||||||
|
};
|
||||||
"auth.lyes.eu" = {
|
"auth.lyes.eu" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
|
||||||
48
modules/server/baba/default.nix
Normal file
48
modules/server/baba/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.nextcloud = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nextcloud32;
|
||||||
|
hostName = "cloud.lyes.eu";
|
||||||
|
https = true;
|
||||||
|
configureRedis = true;
|
||||||
|
maxUploadSize = "10G";
|
||||||
|
|
||||||
|
extraAppsEnable = true;
|
||||||
|
extraApps = {
|
||||||
|
inherit (pkgs.nextcloud32Packages.apps) mail calendar contacts user_oidc notes richdocuments tasks;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
dbtype = "pgsql";
|
||||||
|
dbuser = "baba";
|
||||||
|
dbname = "baba";
|
||||||
|
dbpassFile = config.age.secrets.path;
|
||||||
|
adminpassFile = config.age.secrets.path;
|
||||||
|
};
|
||||||
|
|
||||||
|
phpOptions = {
|
||||||
|
"opcache.interned_strings_buffer" = "32";
|
||||||
|
"opcache.memory_consumption" = "512";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
age.secrets = {
|
||||||
|
baba-db-pass = {
|
||||||
|
file = ../../../secrets/zora/services/baba-db-pass.age;
|
||||||
|
owner = "nextcloud";
|
||||||
|
group = "nextcloud";
|
||||||
|
};
|
||||||
|
baba-admin-pass = {
|
||||||
|
file = ../../../secrets/zora/services/baba-admin-pass.age;
|
||||||
|
owner = "nextcloud";
|
||||||
|
group = "nextcloud";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -15,4 +15,6 @@ in
|
||||||
"secrets/zora/services/kanidm-idm-admin-password.age".publicKeys = all;
|
"secrets/zora/services/kanidm-idm-admin-password.age".publicKeys = all;
|
||||||
"secrets/zora/services/taf-token.age".publicKeys = all;
|
"secrets/zora/services/taf-token.age".publicKeys = all;
|
||||||
"secrets/zora/services/giovanni-env.age".publicKeys = all;
|
"secrets/zora/services/giovanni-env.age".publicKeys = all;
|
||||||
|
"secrets/zora/services/baba-db-pass.age".publicKeys = all;
|
||||||
|
"secrets/zora/services/baba-admin-pass.age".publicKeys = all;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
secrets/zora/services/baba-admin-pass.age
Normal file
BIN
secrets/zora/services/baba-admin-pass.age
Normal file
Binary file not shown.
7
secrets/zora/services/baba-db-pass.age
Normal file
7
secrets/zora/services/baba-db-pass.age
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 whuRpQ LtFKAcJJ74Mca7gWMLv5zpqSgXvBiVnTPy0vHNRYkDA
|
||||||
|
B+NIOcyzQTlNmjKX0CNtTzhms1bOvkmRLCfh/z8tCTs
|
||||||
|
-> ssh-ed25519 TFqgIg PK+2avlrI63eVfDBuwBhFvTzKYxLz6spkUARFhIsK0A
|
||||||
|
fD0BVpgq8gqJLjrrweVfsS82uruP/N+jMKkgDIEM7Ls
|
||||||
|
--- zIUOql4g4BircTLHxDVtsZPhA3YjQIji2f8Mz9MzaSw
|
||||||
|
Ès´»Q¦t¬ÛEá¤T<>l’»ËØ~P¼=àJMµºßr5êx¢@ÔAå/˜i<69>Xƒö<1A>•gî²ÂŠ^0ðW
|
||||||
Loading…
Add table
Add a link
Reference in a new issue