Add temp admin login for nextcloud, setup correct http port
This commit is contained in:
parent
db535ef6ed
commit
56f967b261
|
@ -1,17 +1,23 @@
|
||||||
{ ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./traefik.nix ./fail2ban.nix ];
|
imports = [ ./traefik.nix ./fail2ban.nix ];
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.nextcloud26;
|
||||||
hostName = "cloud.xenia.me.uk";
|
hostName = "cloud.xenia.me.uk";
|
||||||
logType = "systemd";
|
logType = "systemd";
|
||||||
|
config = {
|
||||||
|
adminuser = "xenia";
|
||||||
|
adminpassFile = "${pkgs.writeText "adminpass" "tempPass123"}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [{ addr = "localhost"; port = 8000; }];
|
||||||
services.traefik.dynamicConfigOptions.http = {
|
services.traefik.dynamicConfigOptions.http = {
|
||||||
routers.nextcloud = {
|
routers.nextcloud = {
|
||||||
rule = "Host(`cloud.xenia.me.uk`)";
|
rule = "Host(`cloud.xenia.me.uk`)";
|
||||||
service = "nextcloud-webinterface";
|
service = "nextcloud-webinterface";
|
||||||
tls = { certResolver = "default"; };
|
tls = { certResolver = "default"; };
|
||||||
};
|
};
|
||||||
services.nextcloud-webinterface.loadBalancer.servers = [{ url = "http://localhost:3000"; }];
|
services.nextcloud-webinterface.loadBalancer.servers = [{ url = "http://localhost:8000"; }];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue