nixpkgs/nixos/modules/services/web-servers/nginx
Dave Nicponski 1a73877305 Tweak nginx config for Let's Encrypt ACME challenges
Currently, this is using a "URI prefix match", but per nginx docs,

```
[...] the location with the longest matching prefix is selected and remembered. Then regular expressions are checked, in the order of their appearance in the configuration file. The search of regular expressions terminates on the first match, and the corresponding configuration is used. If no match with a regular expression is found then the configuration of the prefix location remembered earlier is used.
```
which means a config like this (from wordpress service) will override that
```
locations = {
          "~ /\\." = {
            priority = 800;
            extraConfig = "deny all;";
          };
};
```
😱
Luckily, from nginx docs:
```
If the longest matching prefix location has the “^~” modifier then regular expressions are not checked.
```

Whew!
2022-10-20 10:59:28 -04:00
..
default.nix Tweak nginx config for Let's Encrypt ACME challenges 2022-10-20 10:59:28 -04:00
gitweb.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
location-options.nix nixos/*: mark pre-existing markdown descriptions as mdDoc 2022-08-19 22:40:58 +02:00
vhost-options.nix nixos/*: convert straggler options to MD 2022-08-31 17:27:38 +02:00