nixos-config/hosts/nuc/modules/logseq/default.nix

16 lines
343 B
Nix
Raw Normal View History

2024-11-08 22:42:19 +01:00
{ 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
'';
}