2024-08-30 01:17:50 -04:00
|
|
|
{pkgs, outputs, lib, ...}: {
|
2024-08-26 13:07:59 -04:00
|
|
|
services = {
|
|
|
|
pufferpanel = {
|
|
|
|
enable = true;
|
|
|
|
environment = {
|
|
|
|
PUFFER_WEB_HOST = ":5010";
|
2024-08-30 01:17:50 -04:00
|
|
|
PUFFER_PANEL_SETTINGS_MASTERURL = "https://panel.${outputs.secrets.jimDomain}";
|
2024-08-26 13:07:59 -04:00
|
|
|
PUFFER_PANEL_EMAIL_PROVIDER = "smtp";
|
2024-08-30 01:17:50 -04:00
|
|
|
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;
|
2024-08-26 13:07:59 -04:00
|
|
|
};
|
|
|
|
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 ];
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
2024-08-30 01:17:50 -04:00
|
|
|
nginx.virtualHosts."panel.${outputs.secrets.jimDomain}" = {
|
2024-08-26 13:07:59 -04:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:5010";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|