add nextcloud to alexandria
This commit is contained in:
parent
7c61786305
commit
077d0895b4
4 changed files with 44 additions and 1 deletions
27
hosts/servers/alexandria/nextcloud.nix
Normal file
27
hosts/servers/alexandria/nextcloud.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud27;
|
||||
hostname = "nextcloud.baduhai.me";
|
||||
configureRedis = true;
|
||||
caching.apcu = false;
|
||||
https = true;
|
||||
sercreFile = config.age.secrets.nextcloud.path;
|
||||
};
|
||||
|
||||
nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
||||
useACMEHost = "baduhai.me";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets.nextcloud = {
|
||||
file = ../../../secrets/nextcloud.json.age;
|
||||
owner = "nextcloud";
|
||||
group = "hosted";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue