VEGAS: add Nextcloud service
This commit is contained in:
parent
bdf1153359
commit
b22174e512
5 changed files with 66 additions and 0 deletions
52
hosts/VEGAS/services/nextcloud/default.nix
Normal file
52
hosts/VEGAS/services/nextcloud/default.nix
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
{ config, lib, pkgs, tools, ... }:
|
||||||
|
{
|
||||||
|
age.secrets = {
|
||||||
|
nextcloud-adminpass = {
|
||||||
|
file = ../../../../secrets/nextcloud-adminpass.age;
|
||||||
|
owner = "nextcloud";
|
||||||
|
group = "nextcloud";
|
||||||
|
mode = "0400";
|
||||||
|
};
|
||||||
|
nextcloud-dbpass = {
|
||||||
|
file = ../../../../secrets/nextcloud-dbpass.age;
|
||||||
|
owner = "nextcloud";
|
||||||
|
group = "nextcloud";
|
||||||
|
mode = "0400";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.nextcloud = {
|
||||||
|
package = pkgs.nextcloud22;
|
||||||
|
enable = true;
|
||||||
|
https = true;
|
||||||
|
hostName = "storage.${tools.meta.domain}";
|
||||||
|
home = "/srv/storage/www-app/nextcloud";
|
||||||
|
maxUploadSize = "4G";
|
||||||
|
enableImagemagick = true;
|
||||||
|
caching = with lib; flip genAttrs (_: true) [
|
||||||
|
"apcu" "redis"
|
||||||
|
];
|
||||||
|
|
||||||
|
autoUpdateApps = {
|
||||||
|
enable = true;
|
||||||
|
startAt = "02:00";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
dbhost = "/run/postgresql";
|
||||||
|
dbtype = "pgsql";
|
||||||
|
dbname = "storage";
|
||||||
|
dbuser = "storage";
|
||||||
|
dbpassFile = config.age.secrets.nextcloud-adminpass.path;
|
||||||
|
|
||||||
|
overwriteProtocol = "https";
|
||||||
|
|
||||||
|
adminuser = "sa";
|
||||||
|
adminpassFile = config.age.secrets.nextcloud-dbpass.path;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.nginx.virtualHosts."${config.services.nextcloud.hostName}" = {
|
||||||
|
addSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
|
systemd.services.phpfpm-nextcloud.aliases = [ "nextcloud.service" ];
|
||||||
|
}
|
|
@ -25,6 +25,7 @@
|
||||||
./services/git
|
./services/git
|
||||||
./services/ipfs
|
./services/ipfs
|
||||||
./services/jokes
|
./services/jokes
|
||||||
|
./services/nextcloud
|
||||||
./services/nfs
|
./services/nfs
|
||||||
./services/mail
|
./services/mail
|
||||||
./services/matrix
|
./services/matrix
|
||||||
|
|
BIN
secrets/nextcloud-adminpass.age
Normal file
BIN
secrets/nextcloud-adminpass.age
Normal file
Binary file not shown.
11
secrets/nextcloud-dbpass.age
Normal file
11
secrets/nextcloud-dbpass.age
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 NO562A v+XDGMPzeE5olvFXKz7d74zzfk8pa5+LlfpZy/7Ga2g
|
||||||
|
cA09Rc8f1zlc8qOIgIal8B3JOssjMZBZHIwrctMbkow
|
||||||
|
-> ssh-ed25519 5/zT0w x8a+XLDGWkxpYu7HdgzDZADL66yBA3RIIxOmPlH281Y
|
||||||
|
vbJOrd60jkjLc/UqWvlSB73atv4VleiO9PiymQJttEs
|
||||||
|
-> ssh-ed25519 d3WGuA MZql6UkhVKdhO/f9CSFg43uKMxomP3UoE48mPUdEfyY
|
||||||
|
s41KGPz7oEFZxmNfAGnZF40ap9oXPEp6BigSEhQhAuc
|
||||||
|
-> TeXZ-grease % 5Y]W
|
||||||
|
ci+D1OFwU36Tj40
|
||||||
|
--- iSVW+fBmiuXLeI6KJblKNHe7ePF0jsKba+GShRotMaY
|
||||||
|
í/›Ìü/†§p'À±ÁLp•Äv&õÅŠÕh›!¨F¥ß=¬”
|
|
@ -11,6 +11,8 @@ in with hosts;
|
||||||
"hydra-db-credentials.age".publicKeys = max ++ map systemKeys [ styx ];
|
"hydra-db-credentials.age".publicKeys = max ++ map systemKeys [ styx ];
|
||||||
"hydra-s3.age".publicKeys = max ++ map systemKeys [ styx ];
|
"hydra-s3.age".publicKeys = max ++ map systemKeys [ styx ];
|
||||||
"matrix-appservice-discord-token.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
"matrix-appservice-discord-token.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||||
|
"nextcloud-adminpass.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||||
|
"nextcloud-dbpass.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||||
"oauth2_proxy-secrets.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
"oauth2_proxy-secrets.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||||
"postfix-ldap-mailboxes.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
"postfix-ldap-mailboxes.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||||
"synapse-db.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
"synapse-db.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||||
|
|
Loading…
Reference in a new issue