summaryrefslogtreecommitdiffstats
path: root/makefu/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-12-14 19:36:06 +0100
committermakefu <github@syntax-fehler.de>2015-12-14 19:36:06 +0100
commit55ad05879b8ba97e369bfd72810028dd4622e356 (patch)
tree1cfee15272208e3fdfd5945e9621fd9a1f7dfd7a /makefu/2configs
parent6f150af8acf2195188518bf53d0330da7a4bb8f8 (diff)
s 1 wolf: initial preparation of ci packaging
Diffstat (limited to 'makefu/2configs')
-rw-r--r--makefu/2configs/nginx/euer.test.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/makefu/2configs/nginx/euer.test.nix b/makefu/2configs/nginx/euer.test.nix
new file mode 100644
index 000000000..ffdc0bc60
--- /dev/null
+++ b/makefu/2configs/nginx/euer.test.nix
@@ -0,0 +1,26 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+ hostname = config.krebs.build.host.name;
+ user = config.services.nginx.user;
+ group = config.services.nginx.group;
+ external-ip = head config.krebs.build.host.nets.internet.addrs4;
+ internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
+in {
+ krebs.nginx = {
+ enable = mkDefault true;
+ servers = {
+ euer-share = {
+ listen = [ ];
+ server-names = [ "share.euer.krebsco.de" ];
+ 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:8000/;
+ '');
+ };
+ };
+ };
+}