nixos-config/hosts/nuc/modules/logseq/default.nix
2024-11-08 22:42:19 +01:00

16 lines
343 B
Nix

{ config, ... }:
let
domain = "logseq.${config.networking.domain}";
in
{
virtualisation.oci-containers = {
containers.kanboard = {
image = "ghcr.io/logseq/logseq-webapp:latest";
ports = [ "127.0.0.1:8045:80" ];
};
};
services.caddy.virtualHosts."${domain}".extraConfig = ''
reverse_proxy 127.0.0.1:8045
'';
}