diff options
author | KJ Ørbekk <kj@orbekk.com> | 2017-06-03 10:58:33 -0400 |
---|---|---|
committer | KJ Ørbekk <kj@orbekk.com> | 2017-06-03 10:58:33 -0400 |
commit | 26dc09e7b47b96221da0a2486d0dcb38f11f4f6c (patch) | |
tree | 0e81724de7ce6956d87fe6cc4313ca71885ab5e5 /config | |
parent | e3ba09caf10e0e8046fffb346a053e04a31d7083 (diff) |
Host kj.orbekk.com from shape.
Diffstat (limited to 'config')
-rw-r--r-- | config/web-server.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config/web-server.nix b/config/web-server.nix index 392cc0d..e97bfe0 100644 --- a/config/web-server.nix +++ b/config/web-server.nix @@ -25,10 +25,18 @@ "kj.orbekk.com" = { enableACME = true; forceSSL = true; + root = "${pkgs.www-orbekk}"; + locations."/" = { + extraConfig = '' + try_files $uri @storage; + ''; + }; + locations."@storage" = { + root = "/storage/srv/kj.orbekk.com"; + }; locations."/beta" = { alias = "${pkgs.www-orbekk}"; }; - locations."/".proxyPass = "http://10.0.20.11:8011"; locations."/hledger" = { extraConfig = ''return 302 /hledger/;''; }; |