diff options
author | lassulus <lass@lassul.us> | 2016-12-26 14:18:08 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2016-12-26 14:18:08 +0100 |
commit | b9e3b93105d4214de43ee596adff7cf661311780 (patch) | |
tree | abff4b7c7ca29266c787fc37dc7f6bef2bd2ce26 /lass/2configs/go.nix | |
parent | 0f34276090f804b7eed2bf45a0804a69fbe8ae35 (diff) |
l: krebs.nginx -> services.nginx
Diffstat (limited to 'lass/2configs/go.nix')
-rw-r--r-- | lass/2configs/go.nix | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lass/2configs/go.nix b/lass/2configs/go.nix index f6ddbe96d..8e31f050f 100644 --- a/lass/2configs/go.nix +++ b/lass/2configs/go.nix @@ -8,16 +8,14 @@ with import <stockholm/lib>; krebs.go = { enable = true; }; - krebs.nginx = { + services.nginx = { enable = true; - servers.go = { - locations = [ - (nameValuePair "/" '' - proxy_set_header Host go; - proxy_pass http://localhost:1337; - '') - ]; - server-names = [ + virtualHosts.go = { + locations."/".extraConfig = '' + proxy_set_header Host go; + proxy_pass http://localhost:1337; + ''; + serverAliases = [ "go" "go.retiolum" ]; |