summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/;'';
};