add ttyd to vps
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user