diff options
author | lassulus <lass@aidsballs.de> | 2015-12-16 15:46:23 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-12-16 15:46:23 +0100 |
commit | 07f4510ad0bff0f9d72e5dcee279a30a0d5f8da3 (patch) | |
tree | 5848f7727500895df71a523a3405087448ba9e4a /makefu/2configs/nginx | |
parent | d94784efbecbd437ec6268bb9bfca57a8088d6e8 (diff) | |
parent | 8f18b00ab141df92b7df4725a18bb3283b184d76 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/nginx')
-rw-r--r-- | makefu/2configs/nginx/euer.test.nix | 26 |
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/; + ''); + }; + }; + }; +} |