From 6d4b55a57fb7fc479d9b554f5a7e9c9f7cb0ec36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Wed, 28 Mar 2018 14:57:20 -0400 Subject: add mpd service --- config/web-server.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config/web-server.nix') diff --git a/config/web-server.nix b/config/web-server.nix index 2e0d56f..4d5f5f1 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -1,4 +1,7 @@ { config, lib, pkgs, ... }: + let mpd_loc = (import ../data/aliases.nix).services.mpd; + mpdweb_loc = (import ../data/aliases.nix).services.mpdweb; + in { imports = [ ./orbekk-pkgs.nix ]; @@ -47,6 +50,9 @@ alias = "/var/www/munin/"; extraConfig = "autoindex on;"; }; + locations."/mpd" = { + proxyPass = "http://${mpd_loc.address}:${toString mpd_loc.port}/"; + }; #locations."/systemd" = { # proxyPass = "http://10.0.20.15:11105/"; #}; @@ -64,6 +70,11 @@ proxyPass = "http://10.0.20.15:11102"; }; }; + "ympd.orbekk.com" = template // { + locations."/" = { + proxyPass = "http://${mpdweb_loc.address}:${toString mpdweb_loc.port}/"; + }; + }; "git.orbekk.com" = template // { locations."/".proxyPass = "http://10.0.20.2:11103"; }; -- cgit v1.2.3