summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/euer.test.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-12-24 23:38:01 +0100
committermakefu <github@syntax-fehler.de>2016-12-24 23:38:01 +0100
commit1745abde62a68800e065aca8c0d8452ebd005da6 (patch)
tree30c6a557e55bb6a78588ee73f68d8db59d9d217e /makefu/2configs/nginx/euer.test.nix
parent78c50fe49599b5c3dd147ebd23253fa2abe53998 (diff)
m 2 *: krebs.nginx -> services.nginx
Diffstat (limited to 'makefu/2configs/nginx/euer.test.nix')
-rw-r--r--makefu/2configs/nginx/euer.test.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/makefu/2configs/nginx/euer.test.nix b/makefu/2configs/nginx/euer.test.nix
index bff652daf..40c376130 100644
--- a/makefu/2configs/nginx/euer.test.nix
+++ b/makefu/2configs/nginx/euer.test.nix
@@ -8,18 +8,16 @@ let
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
in {
- krebs.nginx = {
+ services.nginx = {
enable = mkDefault true;
- servers = {
- euer-share = {
- listen = [ ];
- server-names = [ "share.euer.krebsco.de" ];
- locations = singleton (nameValuePair "/" ''
+ virtualHosts."share.euer.krebsco.de" = {
+ locations."/" = {
+ proxyPass = "http://localhost:8000/";
+ extraConfig = ''
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/;
- '');
+ '';
};
};
};