substitute nextcloud for photoprism
This commit is contained in:
parent
71659092dc
commit
b084dc49e1
|
@ -2,8 +2,8 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./photoprism.nix
|
||||
./wireguard.nix
|
||||
./grafana.nix
|
||||
./nextcloud.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, config, pkgs, ...}:
|
||||
|
||||
{
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
package = pkgs.nextcloud30;
|
||||
hostName = "nextcloud.beepboop.systems";
|
||||
config.adminpassFile = "/etc/nextcloud-admin";
|
||||
settings.overwriteprotocol = "https";
|
||||
extraApps = {
|
||||
inherit (config.services.nextcloud.package.packages.apps) contacts calendar tasks;
|
||||
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}".listen = [ {
|
||||
addr = "10.100.0.2";
|
||||
port = 5028;
|
||||
} ];
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
./nginx.nix
|
||||
./franklincce.nix
|
||||
./wireguard.nix
|
||||
./photoprism-bridge.nix
|
||||
./nextcloud-bridge.nix
|
||||
./grafana-bridge.nix
|
||||
./prometheus.nix
|
||||
./socks.nix
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
services.nginx.virtualHosts."photos.beepboop.systems" = {
|
||||
services.nginx.virtualHosts."nextcloud.beepboop.systems" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://10.100.0.2:2342";
|
||||
proxyPass = "http://10.100.0.2:5028";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
Loading…
Reference in New Issue