summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/go.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-09-04 09:05:06 +0200
committermakefu <github@syntax-fehler.de>2017-09-04 09:05:06 +0200
commit729549d15464e57e41fd143450c36274cedc84fa (patch)
treec28cfa3576c601f7f665cebc7721ef3a08311792 /krebs/2configs/go.nix
parent848acb85ccecbe25987bf6da45a96fc4eaaa74e9 (diff)
parentfcf59a00e2ab675cb171cbe4f21b8df73836d144 (diff)
Merge remote-tracking branch 'lass/master'
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"
+ ];
+ };
+ };
+}