about summary refs log tree commit diff
path: root/ops/modules
diff options
context:
space:
mode:
Diffstat (limited to 'ops/modules')
-rw-r--r--ops/modules/www/inbox.tvl.su.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/ops/modules/www/inbox.tvl.su.nix b/ops/modules/www/inbox.tvl.su.nix
index a9af18e3481b..38db5d2a8eda 100644
--- a/ops/modules/www/inbox.tvl.su.nix
+++ b/ops/modules/www/inbox.tvl.su.nix
@@ -1,4 +1,4 @@
-{ config, ... }:
+{ config, depot, ... }:
 
 {
   imports = [
@@ -11,10 +11,17 @@
       forceSSL = true;
 
       extraConfig = ''
+        # nginx is incapable of serving a single file at /, hence this hack:
         location = / {
-          return 302 https://inbox.tvl.su/depot;
+          index /landing-page;
         }
 
+        location = /landing-page {
+          types { } default_type "text/html; charset=utf-8";
+          alias ${depot.web.inbox};
+        }
+
+        # rest of requests is proxied to public-inbox-httpd
         location / {
           proxy_pass http://localhost:${toString config.services.public-inbox.http.port};
         }