From 669b904d1b11ed3051ed61b69489a04e353eeb8c Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 9 Oct 2015 13:21:25 +0200 Subject: lass 2 ircd: fix import of ircd.nix --- lass/2configs/ircd.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lass/2configs') diff --git a/lass/2configs/ircd.nix b/lass/2configs/ircd.nix index de96ad9d6..e48bbfd3e 100644 --- a/lass/2configs/ircd.nix +++ b/lass/2configs/ircd.nix @@ -4,7 +4,8 @@ krebs.iptables.tables.filter.INPUT.rules = [ { predicate = "-i retiolum -p tcp --dport 6667"; target = "ACCEPT"; } ]; - config.services.charybdis = { + + services.charybdis = { enable = true; config = '' serverinfo { -- cgit v1.2.3 From 682475b94897105c1b3029f4beaab68b7d561366 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 9 Oct 2015 13:36:44 +0200 Subject: lass 2 git: add newsbot-js repo --- lass/2configs/git.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'lass/2configs') diff --git a/lass/2configs/git.nix b/lass/2configs/git.nix index d63705ab6..2164b2e33 100644 --- a/lass/2configs/git.nix +++ b/lass/2configs/git.nix @@ -32,6 +32,7 @@ let wai-middleware-time = {}; web-routes-wai-custom = {}; go = {}; + newsbot-js = {}; }; restricted-repos = mapAttrs make-restricted-repo ( -- cgit v1.2.3 From 69098a48472be34c5efc6ce449074482e73cbcd6 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 14 Oct 2015 19:19:34 +0200 Subject: use go as url-shortener for newsbot-js --- lass/2configs/go.nix | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'lass/2configs') diff --git a/lass/2configs/go.nix b/lass/2configs/go.nix index 30d3e6ae5..81a02ec7c 100644 --- a/lass/2configs/go.nix +++ b/lass/2configs/go.nix @@ -1,5 +1,6 @@ -{ config, pkgs, ... }: +{ config, lib, pkgs, ... }: +with lib; { imports = [ ../3modules/go.nix @@ -10,7 +11,19 @@ lass.go = { enable = true; }; - krebs.iptables.tables.filter.INPUT.rules = [ - { predicate = "-i retiolum -p tcp --dport 1337"; target = "ACCEPT"; } - ]; + krebs.nginx = { + enable = true; + servers.go = { + locations = [ + (nameValuePair "/" '' + proxy_set_header Host go; + proxy_pass http://localhost:1337; + '') + ]; + server-names = [ + "go" + "go.retiolum" + ]; + }; + }; } -- cgit v1.2.3