diff options
author | tv <tv@krebsco.de> | 2017-09-05 23:00:23 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-09-05 23:00:23 +0200 |
commit | 1436781119f92cbf431db5e817fba765b24d922a (patch) | |
tree | f8ee298cdddd02beab384b047cc1a76bd1bd26c1 /krebs/2configs/go.nix | |
parent | 77e9bd83e2208d1d732ef505e0e996a2440d5d7c (diff) | |
parent | 71d3f53f2bf767cfbb6e941438431d6083f304b9 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'krebs/2configs/go.nix')
-rw-r--r-- | krebs/2configs/go.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/krebs/2configs/go.nix b/krebs/2configs/go.nix new file mode 100644 index 000000000..b75233871 --- /dev/null +++ b/krebs/2configs/go.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with import <stockholm/lib>; +{ + environment.systemPackages = [ + pkgs.go-shortener + ]; + krebs.go = { + enable = true; + }; + services.nginx = { + enable = true; + virtualHosts.go = { + locations."/".extraConfig = '' + proxy_set_header Host go; + proxy_pass http://localhost:1337; + ''; + serverAliases = [ + "go" + "go.r" + ]; + }; + }; +} |