Created
May 16, 2022 20:58
-
-
Save zimbatm/0e57889578b4642afe75595179d03762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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