nixos-config/hosts/defiant/services/matrix/admin.nix

15 lines
440 B
Nix
Raw Normal View History

2024-01-17 15:01:54 +01:00
{ config, pkgs, lib, ... }:
let
domain = "matrix-admin.home.feal.no";
2024-05-26 11:01:29 +02:00
# backend = "http://127.0.0.1:8008";
backend = "http://unix:/run/matrix-synapse/matrix-synapse.sock";
2024-01-17 15:01:54 +01:00
synapse-admin = pkgs.callPackage ./adminPkg.nix { };
in {
services.nginx.virtualHosts."${domain}" = {
locations."/".root = "${synapse-admin}";
locations."/_synapse".proxyPass = "${backend}";
locations."/_matrix".proxyPass = "${backend}";
};
}