Too much stuff

This commit is contained in:
Andrea Ciceri 2022-10-29 12:02:40 +02:00
parent ad4810b7db
commit 13ad21f74c
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
9 changed files with 234 additions and 53 deletions

View file

@ -248,6 +248,15 @@
proxyPass = "http://192.168.1.71:80";
};
};
"wstunnel.ccr.ydns.eu" = {
enableACME = true;
addSSL = true;
locations."/" = {
proxyPass = "http://localhost:8080";
proxyWebsockets = true;
};
};
};
};
};
@ -275,6 +284,17 @@
};
};
systemd.services.wstunnel = {
description = "WSTunnel";
wantedBy = ["multi-user.target"];
after = ["network.target"];
serviceConfig = {
User = "root";
Type = "oneshot";
ExecStart = "${pkgs.wstunnel}/bin/wstunnel wstunnel --server ws://0.0.0.0:8080";
};
};
# TODO It seems to not work
systemd.timers.ydnsUpdater = {
wantedBy = ["timers.target"];