diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-14 12:21:19 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-14 12:21:31 -0400 |
commit | 2198632a40b249ceff1d1927ef683e11b7a06afc (patch) | |
tree | cf94551ab09e6d58d42df12cd0efa543fadf67ba /config/fcgiwrap.nix | |
parent | ffb00cd62672c19e875820049b86eb362e6d0775 (diff) |
Add cgit service.
Diffstat (limited to 'config/fcgiwrap.nix')
-rw-r--r-- | config/fcgiwrap.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config/fcgiwrap.nix b/config/fcgiwrap.nix new file mode 100644 index 0000000..ab08436 --- /dev/null +++ b/config/fcgiwrap.nix @@ -0,0 +1,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"; + }; +} |