summaryrefslogtreecommitdiff
path: root/flora/services
diff options
context:
space:
mode:
authorstuebinm2022-12-05 16:37:27 +0100
committerstuebinm2022-12-05 16:37:27 +0100
commit8a10ea437cf74619865e0966f8be8f16e6cba938 (patch)
tree3f6d07986d3eb2963114739ccfab6ad0756fa443 /flora/services
parent64546ed6399d49ff125ee667b9632825eb3ccba5 (diff)
update to nixos22.11
Diffstat (limited to 'flora/services')
-rw-r--r--flora/services/daemoniones.nix34
1 files changed, 0 insertions, 34 deletions
diff --git a/flora/services/daemoniones.nix b/flora/services/daemoniones.nix
deleted file mode 100644
index ae9d3cb..0000000
--- a/flora/services/daemoniones.nix
+++ /dev/null
@@ -1,34 +0,0 @@
-{ config, pkgs, ...}:
-
-{
- systemd.services =
- let simpledaemon = name: command: {
- enable = true;
- description = name;
- wantedBy = [ "multi-user.target" ];
- serviceConfig.Type = "simple";
- script = command;
- };
- in {
- choclo = simpledaemon "choclo signalling server" "/root/simple-signalling/target/release/chaski -b 127.0.0.1:5000";
- wasi = simpledaemon "wasi backend" "/root/wasi-minimal/target/release/wasi";
-# picarones = simpledaemon "picarones backend" "/root/picarones-server/target/release/picarones -b 127.0.0.1:6000";
- };
-
- services.nginx = {
- virtualHosts =
- let websocketproxy = addr: {
- locations."/".proxyPass = addr;
- forceSSL = true;
- enableACME = true;
- locations."/".proxyWebsockets = true;
- };
- in {
- "wasi.stuebinm.eu" = websocketproxy "http://127.0.0.1:9000";
- "choclo.stuebinm.eu" = websocketproxy "http://127.0.0.1:5000";
-# "picarones.stuebinm.eu" = websocketproxy "http://127.0.0.1:6000";
- };
- };
-
-
-}