stockholm/lass/2configs/go.nix

25 lines
428 B
Nix
Raw Normal View History

2015-10-14 17:19:34 +00:00
{ config, lib, pkgs, ... }:
2015-10-08 23:24:13 +00:00
2016-10-20 18:54:38 +00:00
with import <stockholm/lib>;
2015-10-08 23:24:13 +00:00
{
environment.systemPackages = [
2016-10-27 12:47:21 +00:00
pkgs.go-shortener
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;
};
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 = ''
proxy_set_header Host go;
proxy_pass http://localhost:1337;
'';
serverAliases = [
2015-10-14 17:19:34 +00:00
"go"
"go.retiolum"
];
};
};
2015-10-08 23:24:13 +00:00
}