substitute nextcloud for photoprism
This commit is contained in:
parent
71659092dc
commit
b084dc49e1
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./photoprism.nix
|
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./grafana.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
|
./nginx.nix
|
||||||
./franklincce.nix
|
./franklincce.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./photoprism-bridge.nix
|
./nextcloud-bridge.nix
|
||||||
./grafana-bridge.nix
|
./grafana-bridge.nix
|
||||||
./prometheus.nix
|
./prometheus.nix
|
||||||
./socks.nix
|
./socks.nix
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.nginx.virtualHosts."photos.beepboop.systems" = {
|
services.nginx.virtualHosts."nextcloud.beepboop.systems" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://10.100.0.2:2342";
|
proxyPass = "http://10.100.0.2:5028";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
Loading…
Reference in New Issue