Skip to content

Commit

Permalink
feat: enable silverbullet as service on dockingbay94
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Jan 18, 2024
1 parent fe0e70b commit 217d19e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions hosts/nixos/pi4/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@
'';

virtualisation.docker.enable = true;
virtualisation.oci-containers = {
backend = "docker";
containers = {
silverbullet = {
ports = ["127.0.0.1:3000:3000"];
image = "zefhemel/silverbullet:latest";
# command = [ "/bin/sh" ];
# args = [ "-c" "echo 'Hello, world!'" ];
volumes = [
"/home/matt/SyncWork:/space"
];
# restartPolicy = "always";
};
};
};


# Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
Expand Down Expand Up @@ -132,6 +148,14 @@
services.caddy = {
enable = true;

virtualHosts."notey.c4er.com".extraConfig = ''
tls /mnt/certs/c4er.com/c4er.com.crt /mnt/certs/c4er.com/c4er.com.key
handle_path /* {
reverse_proxy localhost:3000
}
'';

virtualHosts."excalidraw.c4er.com".extraConfig = ''
tls /mnt/certs/c4er.com/c4er.com.crt /mnt/certs/c4er.com/c4er.com.key
Expand Down

0 comments on commit 217d19e

Please sign in to comment.