From fb80c1dba81dbabd343e3c7fc101f4ea780a915e Mon Sep 17 00:00:00 2001 From: FreeCorn Date: Sat, 14 Sep 2024 00:31:05 -0600 Subject: [PATCH] added pufferpannel, yoy --- configuration.nix | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index d137718..89c0751 100644 --- a/configuration.nix +++ b/configuration.nix @@ -101,6 +101,29 @@ in user = "freecorn"; }; + # PufferPannel + services = { + pufferpanel = { + enable = true; + environment = { + PUFFER_WEB_HOST = ":5010"; + PUFFER_PANEL_SETTINGS_MASTERURL = "https://ppanel.${secrets.cornDomain}"; + # PUFFER_PANEL_EMAIL_PROVIDER = "smtp"; + # PUFFER_PANEL_EMAIL_HOST = "mx.${outputs.secrets.jimDomain}:587"; + # PUFFER_PANEL_EMAIL_FROM = "noreply@${outputs.secrets.jimDomain}"; + # PUFFER_PANEL_EMAIL_USERNAME = "noreply@${outputs.secrets.jimDomain}"; + # PUFFER_PANEL_EMAIL_PASSWORD = outputs.secrets.noreplyPassword; + }; + extraPackages = with pkgs; [ bash curl gawk gnutar gzip ]; + package = pkgs.buildFHSEnv { + name = "pufferpanel-fhs"; + meta.mainProgram = "pufferpanel-fhs"; + runScript = lib.getExe pkgs.pufferpanel; + targetPkgs = pkgs': with pkgs'; [ icu openssl zlib ]; + }; + }; + }; + # NGINX :3 services.nginx = { enable = true; @@ -128,11 +151,11 @@ in }; # websdr server - "websdr.${secrets.cornDomain}" = { + "ppannel.${secrets.cornDomain}" = { enableACME = true; forceSSL = true; locations."/" = { - proxyPass = "http://127.0.0.1:8073"; + proxyPass = "http://127.0.0.1:5010"; proxyWebsockets = true; }; }; @@ -211,7 +234,7 @@ in git rtl-sdr steam-run - openwebrx + # openwebrx qbittorrent ];