summaryrefslogtreecommitdiff
path: root/config/fcgiwrap.nix
blob: ab084367af96201eaed2d05e377a66fbc5296c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, lib, pkgs, ... }:
let
  fcgiPort = (import ../data/aliases.nix).services.fcgi.port;
in
{
  networking.firewall.allowedTCPPorts = [ fcgiPort ];

  services.fcgiwrap = {
    enable = true;
    socketType = "tcp";
    socketAddress = "0.0.0.0:${toString fcgiPort}";
    user = "fcgi";
    group = "fcgi";
  };
}