Add actual service to alexandria
This commit is contained in:
parent
41bfaf81cd
commit
9f451e2ddf
2 changed files with 18 additions and 1 deletions
17
hosts/servers/alexandria/snapdrop.nix
Normal file
17
hosts/servers/alexandria/snapdrop.nix
Normal 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}";
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue