summaryrefslogtreecommitdiff
path: root/config/web-server.nix
diff options
context:
space:
mode:
authorKJ Ørbekk <kj@orbekk.com>2017-06-03 10:58:33 -0400
committerKJ Ørbekk <kj@orbekk.com>2017-06-03 10:58:33 -0400
commit26dc09e7b47b96221da0a2486d0dcb38f11f4f6c (patch)
tree0e81724de7ce6956d87fe6cc4313ca71885ab5e5 /config/web-server.nix
parente3ba09caf10e0e8046fffb346a053e04a31d7083 (diff)
Host kj.orbekk.com from shape.
Diffstat (limited to 'config/web-server.nix')
-rw-r--r--config/web-server.nix10
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/;'';
};