defiant: add synapse-admin
This commit is contained in:
parent
c6124b551b
commit
0920617a72
|
@ -16,7 +16,7 @@
|
||||||
./services/gitea.nix
|
./services/gitea.nix
|
||||||
./services/hedgedoc.nix
|
./services/hedgedoc.nix
|
||||||
./services/home-assistant.nix
|
./services/home-assistant.nix
|
||||||
./services/matrix-synapse.nix
|
./services/matrix
|
||||||
./services/metrics
|
./services/metrics
|
||||||
./services/minecraft.nix
|
./services/minecraft.nix
|
||||||
./services/vaultwarden.nix
|
./services/vaultwarden.nix
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
domain = "matrix-admin.home.feal.no";
|
||||||
|
backend = "http://127.0.0.1:8008";
|
||||||
|
synapse-admin = pkgs.callPackage ./adminPkg.nix { };
|
||||||
|
in {
|
||||||
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
|
locations."/".root = "${synapse-admin}";
|
||||||
|
locations."/_synapse".proxyPass = "${backend}";
|
||||||
|
locations."/_matrix".proxyPass = "${backend}";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
{ lib, stdenvNoCC, fetchzip }:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
name = "synapse-admin";
|
||||||
|
version = "0.8.7";
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://github.com/Awesome-Technologies/synapse-admin/releases/download/${version}/synapse-admin-${version}-dirty.tar.gz";
|
||||||
|
hash = "sha256-maaiU9ilmzE5lV9Ofjpli4g08/UcgZ82FaIMRrfOy7s=";
|
||||||
|
};
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
installPhase = ''
|
||||||
|
cp -r $src $out
|
||||||
|
'';
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./synapse.nix
|
||||||
|
./admin.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue