diff options
author | makefu <github@syntax-fehler.de> | 2021-12-27 00:20:23 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-12-27 00:20:23 +0100 |
commit | 00b5478f095648eb0a03f065e46a7da13cc7ea69 (patch) | |
tree | 6be7c1ad7637667b941b18954cbbe70d1d9c2667 /makefu/2configs | |
parent | 6d376ce17a7116558e7a43a75ddeec68f6038874 (diff) |
ma home/tonie: fall back to container for front-end
Diffstat (limited to 'makefu/2configs')
-rw-r--r-- | makefu/2configs/home/tonie.nix | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/makefu/2configs/home/tonie.nix b/makefu/2configs/home/tonie.nix index e57115a0c..103a47fa7 100644 --- a/makefu/2configs/home/tonie.nix +++ b/makefu/2configs/home/tonie.nix @@ -1,12 +1,5 @@ { config, pkgs, lib, ... }: let - bp = pkgs.callPackage ( pkgs.fetchFromGitHub { - repo = "npmlock2nix"; - owner = "nix-community"; - rev = "ff17a3c59233911f776d8d462d61d82a3e41df34"; - sha256 = "0l624gkkpn1r0g48b204k0wcqm9cwy5rzd5mnxwfjhyjj1wg4nl7"; - - }) {}; backend_port = 30005; #host = config.networking.hostName; ident = 998; @@ -23,17 +16,6 @@ let }, } ''; - srcpkg = pkgs.fetchFromGitHub { - owner = "makefu"; - repo = "toniebox-audio-match"; - rev = "f652016a79de97c2395e81d010a139d0167d4f0f"; - sha256 = "11mvdzs6pabfkikxpdyxg3vqxyl7n5w1z18ycbyjb2nqgyiss4dm"; - }; - package = bp.build { - src = srcpkg + /client; - installPhase = "cp -r dist $out"; - buildCommands = [ "npm run build" ]; - }; audiobookdir = "/media/cryptX/music/kinder_hoerspiele"; # TONIE_AUDIO_MATCH_USER = username; # TONIE_AUDIO_MATCH_PASS = password; @@ -81,7 +63,7 @@ in }; services.nginx.virtualHosts."tonie" = { serverAliases = [ "tonie.lan" "tonie.omo.r" backend_host ]; - locations."/".root = package; + locations."/".proxyPass = "http://localhost:${toString frontend_port}"; locations."/upload".proxyPass = "http://localhost:${toString backend_port}"; locations."/creativetonies".proxyPass = "http://localhost:${toString backend_port}"; locations."/audiobooks".proxyPass = "http://localhost:${toString backend_port}"; |