Add actual service to alexandria

This commit is contained in:
William 2023-06-28 13:36:07 -03:00
parent 41bfaf81cd
commit 9f451e2ddf
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,17 @@
{ inputs, config, pkgs, lib, ... }:
{
virtualisation.oci-containers.containers."snapdrop" = {
image = "jlongster/snapdrop-server:latest";
ports = [ "${config.ports.snapdrop}:3000" ];
extraOptions = [ "--pull=always" ];
};
services.nginx.virtualHosts."snapdrop.baduhai.me" = {
useACMEHost = "baduhai.me";
forceSSL = true;
kTLS = true;
locations."/".proxyPass = "http://127.0.0.1:${config.ports.snapdrop}";
};
}