summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/mycube.connector.one.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-02-17 03:12:09 +0100
committermakefu <github@syntax-fehler.de>2016-02-17 03:12:09 +0100
commitdaaf21193a0104659bb5e17f41331fb7b1fe629c (patch)
treeece0b8f8d9430c7df37cdd4e4379d21946e59c2b /makefu/2configs/nginx/mycube.connector.one.nix
parent513b33e7a207412c30cfbcd00c7df8aaafe2dee7 (diff)
ma 2 mycube: standalone version based on uwsgi
what a motherf*ckn pain
Diffstat (limited to 'makefu/2configs/nginx/mycube.connector.one.nix')
-rw-r--r--makefu/2configs/nginx/mycube.connector.one.nix28
1 files changed, 0 insertions, 28 deletions
diff --git a/makefu/2configs/nginx/mycube.connector.one.nix b/makefu/2configs/nginx/mycube.connector.one.nix
deleted file mode 100644
index 209c376fb..000000000
--- a/makefu/2configs/nginx/mycube.connector.one.nix
+++ /dev/null
@@ -1,28 +0,0 @@
-{ 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/;
- '');
- };
- };
- };
-}