Add a '/' in a root directive for 'try_files'

try_files was leading to nginx not finding the file and erroring out with a
404. To remedy this, we need to add a root, which should be the root of our
filesystem. In this case this is safe because the path is hardcoded in our
config, so path traversal isn't possible as there is no user-controlled input.

We can't use an 'alias' directive, as that appends the http path to the
filesystem path, meaning that .well-known/matrix/client would become
/nix/store/.../config.jsonclient, which is no good

Change-Id: Ie1b0edbbb126c6cd6dcd8f0b4fd0cc829ee2b00c
1 file changed
tree: 2d9a7142d06c24f7455fac346e08dcddf92ca3b2
  1. .gitreview
  2. default.nix
  3. flake.lock
  4. flake.nix
  5. LICENSE
  6. nginx.nix
  7. nixFilesIn.nix
  8. README.md
README.md

Clicks Nix Helpers


We write nix to manage our infrastructure, but sometimes it's too boilerplatey for us to want to write. This repository contains all the things that have made our jobs easier, we hope they help you too!