summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/icecult.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-10-19 12:37:05 +0200
committerlassulus <lass@aidsballs.de>2016-10-19 12:37:05 +0200
commit7aa9fb7eff3a4356097b46bf531969027a0935a0 (patch)
treefaa02f6d1f5cefc5fdf55cdffe5c4bddea4be616 /makefu/2configs/nginx/icecult.nix
parentcbd83bb95fb3b4443523cc277b662ce4dd9d5925 (diff)
parent7ebecdc99cd9a1ad9ec7c047348e6ea6faf566c5 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/nginx/icecult.nix')
-rw-r--r--makefu/2configs/nginx/icecult.nix28
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;
+ '')
+ ];
+ };
+ };
+}