add ttyd to vps

This commit is contained in:
2023-04-08 15:30:38 -04:00
parent 087a160601
commit 66cca6bc2f

View File

@@ -627,6 +627,13 @@
settings.logtail.enabled = false; settings.logtail.enabled = false;
}; };
services.ttyd = {
enable = true;
port = 9134;
username = "miloignis";
passwordFile = /var/lib/ttyd/secrets;
};
security.acme.email = "miloignis@gmail.com"; security.acme.email = "miloignis@gmail.com";
security.acme.acceptTerms = true; security.acme.acceptTerms = true;
services.nginx = { services.nginx = {
@@ -694,6 +701,14 @@
enableACME = true; enableACME = true;
root = "/var/www/faint.room409.xyz"; root = "/var/www/faint.room409.xyz";
}; };
virtualHosts."ttyd.room409.xyz" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9134";
proxyWebsockets = true;
};
};
#virtualHosts."www.kraken-lang.org" = { #virtualHosts."www.kraken-lang.org" = {
# forceSSL = true; # forceSSL = true;
# enableACME = true; # enableACME = true;