stockholm/lass/2configs/go.nix

27 lines
447 B
Nix
Raw Normal View History

2015-10-14 19:19:34 +02:00
{ config, lib, pkgs, ... }:
2015-10-09 01:24:13 +02:00
2016-10-20 20:54:38 +02:00
with import <stockholm/lib>;
2015-10-09 01:24:13 +02:00
{
environment.systemPackages = [
2016-10-27 14:47:21 +02:00
pkgs.go-shortener
2015-10-09 01:24:13 +02:00
];
2015-11-13 01:18:40 +01:00
krebs.go = {
2015-10-09 01:24:13 +02:00
enable = true;
};
2015-10-14 19:19:34 +02:00
krebs.nginx = {
enable = true;
servers.go = {
locations = [
(nameValuePair "/" ''
proxy_set_header Host go;
proxy_pass http://localhost:1337;
'')
];
server-names = [
"go"
"go.retiolum"
];
};
};
2015-10-09 01:24:13 +02:00
}