diff options
author | lassulus <lassulus@lassul.us> | 2017-09-04 00:16:54 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-09-04 00:29:30 +0200 |
commit | 2855881c732c041d9b6cd9c830d6ac4b84157b17 (patch) | |
tree | f57ac5858b875cba9b807eff5c4e4e200e3802dd /krebs/2configs/go.nix | |
parent | 5b4af805ecc2ea4ea7abd4f3298686282778d7e9 (diff) |
move news & deps: echelon.r -> puyak.r
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" + ]; + }; + }; +} |