From b344ae8783329b646b06240f3146d82ae25801f7 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 29 Nov 2020 03:18:20 +0000 Subject: fix(cl.tvl.fyi): Correct Gerrit shortlink redirects. Before: http://cl.tvl.fyi/123 -> https://cl.tvl.fyi:80/c/depot/+/123/ After: http://cl.tvl.fyi/123 -> https://cl.tvl.fyi/c/depot/+/123/ I think Jetty changed it's behaviour, and Gerrit is now configuring it incorrectly. Fixes #88. Change-Id: I9238c0922b9f627e06eb81fa99dc748dada8909a Reviewed-on: https://cl.tvl.fyi/c/depot/+/2202 Tested-by: BuildkiteCI Reviewed-by: glittershark --- ops/nixos/www/cl.tvl.fyi.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ops/nixos/www') diff --git a/ops/nixos/www/cl.tvl.fyi.nix b/ops/nixos/www/cl.tvl.fyi.nix index 9383f38403da..bcaab85f0227 100644 --- a/ops/nixos/www/cl.tvl.fyi.nix +++ b/ops/nixos/www/cl.tvl.fyi.nix @@ -15,7 +15,8 @@ location / { proxy_pass http://localhost:4778; proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header Host $host; + # The :443 suffix is a workaround for https://b.tvl.fyi/issues/88. + proxy_set_header Host $host:443; } ''; }; -- cgit 1.4.1