diff options
author | makefu <github@syntax-fehler.de> | 2016-02-01 21:58:54 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-02-01 21:58:54 +0100 |
commit | 1925d1e2a602551f12e99ad57b2be3c0e46f0648 (patch) | |
tree | 9863e8ce90a7828d23b5dc5038ff3cf60d5f220f /2configs | |
parent | ca0a47cb6cdaab5d4694207c950ae5f8c23bbcf1 (diff) |
ma 1 gum: host update.connector.one
Diffstat (limited to '2configs')
-rw-r--r-- | 2configs/nginx/update.connector.one.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2configs/nginx/update.connector.one.nix b/2configs/nginx/update.connector.one.nix new file mode 100644 index 000000000..eb39a1668 --- /dev/null +++ b/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; + ''); + }; + }; + }; +} |