Update
This commit is contained in:
parent
939597dd90
commit
debb139aeb
@ -1,24 +1,22 @@
|
|||||||
# Nextcloud
|
# Nextcloud
|
||||||
{ pkgs, ... }:
|
let hostname = "cloud.anotherhadi.com";
|
||||||
let
|
in {
|
||||||
hostname = "cloud.anotherhadi.com";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = hostname;
|
hostName = hostname;
|
||||||
https = true;
|
https = true;
|
||||||
config = {
|
config = {
|
||||||
adminUser = "jack";
|
adminUser = "jack";
|
||||||
adminpassFile = "/etc/nextcloud/adminpassFile";
|
adminpassFile = "/etc/nextcloud/adminpassFile";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
trusted_domains = [ "localhost" "127.0.0.1" "192.168.2.23" "cloud.anotherhadi.com" ];
|
trusted_domains =
|
||||||
|
[ "localhost" "127.0.0.1" "192.168.2.23" "cloud.anotherhadi.com" ];
|
||||||
};
|
};
|
||||||
nginx.recommendedHttpHeaders = true;
|
nginx.recommendedHttpHeaders = true;
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts.${hostname} = {
|
services.nginx.virtualHosts.${hostname} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
}
|
};
|
||||||
}
|
}
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
# test
|
# test
|
||||||
services.nginx.virtualHosts."anotherhadi.com" = {
|
services.nginx.virtualHosts."anotherhadi.com" = {
|
||||||
locations."/".root = "/var/www/default";
|
serverAliases = [ "www.anotherhadi.com" ];
|
||||||
|
root = "/var/www/default";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -13,11 +13,10 @@
|
|||||||
path = "/home/hadi/.ssh/github";
|
path = "/home/hadi/.ssh/github";
|
||||||
owner = "hadi";
|
owner = "hadi";
|
||||||
};
|
};
|
||||||
# nextcloud-adminpass = {
|
nextcloud-adminpass = {
|
||||||
# path = "/etc/nextcloud/adminpassFile";
|
mode = "0444"; # FIXME
|
||||||
# owner = "nextcloud";
|
path = "/etc/nextcloud/adminpassFile";
|
||||||
# group = "nextcloud";
|
};
|
||||||
# };
|
|
||||||
cloudflare-apitoken = {
|
cloudflare-apitoken = {
|
||||||
mode = "0444"; # FIXME
|
mode = "0444"; # FIXME
|
||||||
path = "/etc/cloudflare/apiToken";
|
path = "/etc/cloudflare/apiToken";
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
../modules/server/sops.nix
|
../modules/server/sops.nix
|
||||||
../modules/server/cloudflare-dyndns.nix
|
../modules/server/cloudflare-dyndns.nix
|
||||||
../modules/server/nginx.nix
|
../modules/server/nginx.nix
|
||||||
|
../modules/server/nextcloud.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
Loading…
Reference in New Issue
Block a user