From 56f967b26179f5077a6833e5c21c181eb47c264d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 16 May 2023 17:22:11 +0100 Subject: [PATCH] Add temp admin login for nextcloud, setup correct http port --- server/nextcloud.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/server/nextcloud.nix b/server/nextcloud.nix index 05b83530..16e1301b 100644 --- a/server/nextcloud.nix +++ b/server/nextcloud.nix @@ -1,17 +1,23 @@ -{ ... }: +{ pkgs, config, ... }: { imports = [ ./traefik.nix ./fail2ban.nix ]; services.nextcloud = { enable = true; + package = pkgs.nextcloud26; hostName = "cloud.xenia.me.uk"; 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 = { routers.nextcloud = { rule = "Host(`cloud.xenia.me.uk`)"; service = "nextcloud-webinterface"; tls = { certResolver = "default"; }; }; - services.nextcloud-webinterface.loadBalancer.servers = [{ url = "http://localhost:3000"; }]; + services.nextcloud-webinterface.loadBalancer.servers = [{ url = "http://localhost:8000"; }]; }; }