2015-10-14 17:19:34 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
2015-10-08 23:24:13 +00:00
|
|
|
|
|
|
|
{
|
2015-11-13 00:18:40 +00:00
|
|
|
krebs.go = {
|
2015-10-08 23:24:13 +00:00
|
|
|
enable = true;
|
|
|
|
};
|
2018-02-02 11:13:39 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
2016-12-26 13:18:08 +00:00
|
|
|
services.nginx = {
|
2015-10-14 17:19:34 +00:00
|
|
|
enable = true;
|
2016-12-26 13:18:08 +00:00
|
|
|
virtualHosts.go = {
|
|
|
|
locations."/".extraConfig = ''
|
2020-09-15 18:16:10 +00:00
|
|
|
proxy_set_header Host go.r;
|
2016-12-26 13:18:08 +00:00
|
|
|
proxy_pass http://localhost:1337;
|
|
|
|
'';
|
|
|
|
serverAliases = [
|
2015-10-14 17:19:34 +00:00
|
|
|
"go"
|
2017-04-12 09:00:36 +00:00
|
|
|
"go.r"
|
2015-10-14 17:19:34 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2015-10-08 23:24:13 +00:00
|
|
|
}
|