summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/go.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-09-04 00:16:54 +0200
committerlassulus <lassulus@lassul.us>2017-09-04 00:29:30 +0200
commit2855881c732c041d9b6cd9c830d6ac4b84157b17 (patch)
treef57ac5858b875cba9b807eff5c4e4e200e3802dd /krebs/2configs/go.nix
parent5b4af805ecc2ea4ea7abd4f3298686282778d7e9 (diff)
move news & deps: echelon.r -> puyak.r
Diffstat (limited to 'krebs/2configs/go.nix')
-rw-r--r--krebs/2configs/go.nix24
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"
+ ];
+ };
+ };
+}