summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-02-16 22:44:00 +0100
committermakefu <github@syntax-fehler.de>2016-02-16 22:44:00 +0100
commitb9eae4bf0986a04fb2b19b9da98e6aa93151eb44 (patch)
tree82ca689f83c6ba55fd6f54e84c9e0fe45010b30f /makefu
parent5d98f98b8df7dc40b0b76a3d5b6b6545493309bb (diff)
ma 2 mycube.connector.one: init
Diffstat (limited to 'makefu')
-rw-r--r--makefu/2configs/nginx/mycube.connector.one.nix28
-rw-r--r--makefu/2configs/nginx/update.connector.one.nix2
2 files changed, 29 insertions, 1 deletions
diff --git a/makefu/2configs/nginx/mycube.connector.one.nix b/makefu/2configs/nginx/mycube.connector.one.nix
new file mode 100644
index 000000000..209c376fb
--- /dev/null
+++ b/makefu/2configs/nginx/mycube.connector.one.nix
@@ -0,0 +1,28 @@
+{ config, lib, pkgs, ... }:
+
+with config.krebs.lib;
+let
+ hostname = config.krebs.build.host.name;
+ external-ip = head config.krebs.build.host.nets.internet.addrs4;
+in {
+ services.redis.enable = true;
+
+ krebs.nginx = {
+ enable = mkDefault true;
+ servers = {
+ mybox-connector-one = {
+ listen = [ "${external-ip}:80" ];
+ server-names = [
+ "mycube.connector.one"
+ "mybox.connector.one"
+ ];
+ locations = singleton (nameValuePair "/" ''
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_pass http://localhost:8001/;
+ '');
+ };
+ };
+ };
+}
diff --git a/makefu/2configs/nginx/update.connector.one.nix b/makefu/2configs/nginx/update.connector.one.nix
index 044a14075..ac5e6b17b 100644
--- a/makefu/2configs/nginx/update.connector.one.nix
+++ b/makefu/2configs/nginx/update.connector.one.nix
@@ -8,7 +8,7 @@ in {
krebs.nginx = {
enable = mkDefault true;
servers = {
- omo-share = {
+ update-connector-one = {
listen = [ "${external-ip}:80" ];
server-names = [
"update.connector.one"