From 154795422cf9945764faf00ac4cad37514f251ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KJ=20=C3=98rbekk?= Date: Sun, 18 Jun 2017 08:26:35 -0400 Subject: Add systemhttpd service. --- config/users.nix | 8 ++++++++ config/web-server.nix | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/users.nix b/config/users.nix index 53de154..f8c6a9f 100644 --- a/config/users.nix +++ b/config/users.nix @@ -15,10 +15,18 @@ ]; }; fcgi = { name = "fcgi"; group = "fcgi"; uid = 500; }; + systemhttpd = { + name = "systemhttpd"; + group = "systemhttpd"; + createHome = true; + uid = 502; + home = "/var/lib/systemhttpd"; + }; }; extraGroups = { fcgi = { name = "fcgi"; gid = 500; }; plugdev = { name = "plugdev"; gid = 501; }; + systemhttpd = { name = "systemhttpd"; gid = 502; }; }; }; } diff --git a/config/web-server.nix b/config/web-server.nix index 24129b0..a53f369 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -34,9 +34,9 @@ locations."@storage" = { root = "/storage/srv/kj.orbekk.com"; }; - locations."/beta" = { - alias = "${pkgs.www-orbekk}"; - }; + locations."/systemd" = { + proxyPass = "http://10.0.20.15:11105/"; + }; locations."/hledger" = { extraConfig = ''return 302 /hledger/;''; }; -- cgit v1.2.3