nixos/nextcloud: fix regex to not return 404 on ACME challenges

Fixes #113027
This commit is contained in:
Maximilian Bosch 2021-02-14 12:23:16 +01:00
parent 9e38b82d7c
commit 055b7e2a5d
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -614,7 +614,7 @@ in {
"~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/)".extraConfig = ''
return 404;
'';
"~ ^/(?:\\.|autotest|occ|issue|indie|db_|console)".extraConfig = ''
"~ ^/(?:\\.(?!well-known)|autotest|occ|issue|indie|db_|console)".extraConfig = ''
return 404;
'';
"~ ^\\/(?:index|remote|public|cron|core\\/ajax\\/update|status|ocs\\/v[12]|updater\\/.+|oc[ms]-provider\\/.+|.+\\/richdocumentscode\\/proxy)\\.php(?:$|\\/)" = {