updating rewrite for settings to allow .json files

e.g. defaultheadsetconfig.json
This commit is contained in:
Marcello Ceschia
2020-03-08 10:22:14 +01:00
committed by GitHub
parent d3e2889b24
commit a34b53249b

View File

@@ -16,7 +16,7 @@ server {
location / { location / {
# settings # settings
rewrite ^/((.*)(\.cnf\.xml|\.tlv|authorized_keys)(\.enc)?(\.sgn)?)$ /settings/$1 last; rewrite ^/((.*)(\.cnf\.xml|\.tlv|\.json|authorized_keys)(\.enc)?(\.sgn)?)$ /settings/$1 last;
# firmware # firmware
rewrite ^/((.*).(bin|bin.|loads|LOADS|sbn|SBN|sb2|sbin|zz|zup)(\.sgn)?)$ /firmware/$1 last; rewrite ^/((.*).(bin|bin.|loads|LOADS|sbn|SBN|sb2|sbin|zz|zup)(\.sgn)?)$ /firmware/$1 last;