Skip to content

Instantly share code, notes, and snippets.

@zimbatm
Created May 16, 2022 20:58
Show Gist options
  • Save zimbatm/0e57889578b4642afe75595179d03762 to your computer and use it in GitHub Desktop.
Save zimbatm/0e57889578b4642afe75595179d03762 to your computer and use it in GitHub Desktop.
{ pkgs, ... }:
let
domain = "upterm.numtide.com";
upterm-client = import ./upterm-client/BUILD.nix {
inherit pkgs;
};
in
{
services.uptermd = {
enable = true;
openFirewall = true;
port = 2222;
extraFlags = [ "--hostname" domain ];
};
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/".root = upterm-client.webRoot;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment