python = pkgs.python3.withPackages (p: [ p.gunicorn p.flask p.matplotlib p.unidecode ]);
in
"${python}/bin/gunicorn -w4 -p /run/denise_oms/gunicorn.pid --bind unix:${socket} app:app";
- User = "buildbot";
+ User = "wwwrun";
Restart = "always";
RestartSec = "5s";
PIDFile = "/run/denise_oms/gunicorn.pid";
};
};
+ security.sudo.extraRules = [
+ {
+ commands = [
+ { options = [ "NOPASSWD" ]; command = "${pkgs.systemd}/bin/systemctl restart denise-oms-beta.service"; }
+ { options = [ "NOPASSWD" ]; command = "${pkgs.systemd}/bin/systemctl restart denise-oms.service"; }
+ ];
+ users = ["buildbot"];
+ runAs = "root";
+ }
+ ];
services.websites.env.integration.vhostConfs.denise_oms_beta = {
certName = "denise";
addToCerts = true;
python = pkgs.python3.withPackages (p: [ p.gunicorn p.flask p.matplotlib p.unidecode ]);
in
"${python}/bin/gunicorn -w4 -p /run/denise_oms_beta/gunicorn.pid --bind unix:${socket_beta} app:app";
- User = "buildbot";
+ User = "wwwrun";
Restart = "always";
RestartSec = "5s";
PIDFile = "/run/denise_oms_beta/gunicorn.pid";