[temp] move nextcloud over
This commit is contained in:
parent
a5534e841c
commit
387ad32cc6
@ -3,6 +3,5 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./nextcloud.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
config.adminpassFile = "/etc/nextcloud-admin";
|
config.adminpassFile = "/etc/nextcloud-admin";
|
||||||
settings.overwriteprotocol = "https";
|
settings.overwriteprotocol = "https";
|
||||||
extraApps = {
|
extraApps = {
|
||||||
inherit (config.services.nextcloud.package.packages.apps) calendar tasks mail;
|
|
||||||
phonetrack = pkgs.fetchNextcloudApp {
|
phonetrack = pkgs.fetchNextcloudApp {
|
||||||
sha256 = "sha256-V92f+FiS5vZEkq15A51pHoDpUOBfUOEVIcsXdP/rSMQ=";
|
sha256 = "sha256-V92f+FiS5vZEkq15A51pHoDpUOBfUOEVIcsXdP/rSMQ=";
|
||||||
license = "agpl3Only";
|
license = "agpl3Only";
|
||||||
|
@ -15,8 +15,7 @@
|
|||||||
./nginx.nix
|
./nginx.nix
|
||||||
./franklincce.nix
|
./franklincce.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
|
./nextcloud.nix
|
||||||
./nextcloud-bridge.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
@ -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;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
24
boxes/netbox/nextcloud.nix
Normal file
24
boxes/netbox/nextcloud.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user