diff options
author | makefu <github@syntax-fehler.de> | 2016-10-19 12:31:13 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-10-19 12:31:13 +0200 |
commit | ccd89b19f3fbbb6acb94be8f9f54d4e673ee33dc (patch) | |
tree | 757dc187fba54e4d2927333cf3310d2b0b6d7b62 /makefu/2configs/nginx/icecult.nix | |
parent | cd506f30fac481e95637fa8dfa62cb4cdc27e3e4 (diff) |
m *: minor changes
Diffstat (limited to 'makefu/2configs/nginx/icecult.nix')
-rw-r--r-- | makefu/2configs/nginx/icecult.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/makefu/2configs/nginx/icecult.nix b/makefu/2configs/nginx/icecult.nix new file mode 100644 index 000000000..a11f92af7 --- /dev/null +++ b/makefu/2configs/nginx/icecult.nix @@ -0,0 +1,28 @@ +{ config, pkgs, lib, ... }: + +with config.krebs.lib; + +let + icecult = pkgs.fetchFromGitHub { + owner = "kraiz"; + repo = "icecult"; + rev = "1942d43381a97f30111a48725f7532c343a6f4d7"; + sha256 = "0l8q7kw3w1kpvmy8hza9vr5liiycivbljkmwpacaifbay5y98z58"; + }; +in{ + krebs.nginx = { + enable = true; + servers.default = { + extraConfig = '' + root ${icecult}/app; + ''; + locations = [ + (nameValuePair "/rpc" '' + rewrite /rpc/(.*) /$1 break; + proxy_http_version 1.1; + proxy_pass http://10.42.22.163:3121; + '') + ]; + }; + }; +} |