diff options
author | tv <tv@krebsco.de> | 2016-02-06 16:24:47 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-06 16:24:47 +0100 |
commit | fbf92edb0e5be4bba59d596d5c74b284de84a5fd (patch) | |
tree | 805a8c1efd64adf7efa72b33704fdca64a4d9862 /makefu/2configs/nginx/update.connector.one.nix | |
parent | b16bfb9c99e6f1f063c5b7358003149db42b70e3 (diff) | |
parent | 4c23e33dea4d9901b64bf287983c43862f4990f2 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/nginx/update.connector.one.nix')
-rw-r--r-- | makefu/2configs/nginx/update.connector.one.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/makefu/2configs/nginx/update.connector.one.nix b/makefu/2configs/nginx/update.connector.one.nix new file mode 100644 index 000000000..eb39a1668 --- /dev/null +++ b/makefu/2configs/nginx/update.connector.one.nix @@ -0,0 +1,26 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + hostname = config.krebs.build.host.name; + external-ip = head config.krebs.build.host.nets.internet.addrs4; +in { + krebs.nginx = { + enable = mkDefault true; + servers = { + omo-share = { + listen = [ "${external-ip}:80" ]; + server-names = [ + "update.connector.one" + "firmware.connector.one" + ]; + locations = singleton (nameValuePair "/" '' + autoindex on; + root /var/www/update.connector.one; + sendfile on; + gzip on; + ''); + }; + }; + }; +} |