[temp] move nextcloud over

This commit is contained in:
stupidcomputer 2024-12-26 14:32:07 -06:00
parent a5534e841c
commit 387ad32cc6
5 changed files with 25 additions and 20 deletions

View File

@ -3,6 +3,5 @@
{
imports = [
./wireguard.nix
./nextcloud.nix
];
}

View File

@ -8,7 +8,6 @@
config.adminpassFile = "/etc/nextcloud-admin";
settings.overwriteprotocol = "https";
extraApps = {
inherit (config.services.nextcloud.package.packages.apps) calendar tasks mail;
phonetrack = pkgs.fetchNextcloudApp {
sha256 = "sha256-V92f+FiS5vZEkq15A51pHoDpUOBfUOEVIcsXdP/rSMQ=";
license = "agpl3Only";

View File

@ -15,8 +15,7 @@
./nginx.nix
./franklincce.nix
./wireguard.nix
./nextcloud-bridge.nix
./nextcloud.nix
];
nix = {

View File

@ -1,16 +0,0 @@
{ lib, config, pkgs, ... }:
{
services.nginx.virtualHosts."nextcloud.beepboop.systems" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://10.100.0.2:5028";
proxyWebsockets = true;
extraConfig = ''
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_buffering off;
'';
};
};
}

View File

@ -0,0 +1,24 @@
{ lib, config, pkgs, ... }:
{
services.nextcloud = {
enable = true;
https = true;
package = pkgs.nextcloud30;
hostName = "nextcloud.beepboop.systems";
config.adminpassFile = "/etc/nextcloud-admin";
settings.overwriteprotocol = "https";
extraApps = {
phonetrack = pkgs.fetchNextcloudApp {
sha256 = "sha256-V92f+FiS5vZEkq15A51pHoDpUOBfUOEVIcsXdP/rSMQ=";
license = "agpl3Only";
url = "https://github.com/julien-nc/phonetrack/releases/download/v0.8.1/phonetrack-0.8.1.tar.gz";
};
};
extraAppsEnable = true;
};
services.nginx.virtualHosts."${config.services.nextcloud.hostName}" = {
forceSSL = true;
enableACME = true;
};
}