diff --git a/conf/nginx.conf b/conf/nginx.conf index 2da10cb..664a963 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -23,16 +23,19 @@ location YNH_EXAMPLE_PATH { deny all; } - location ~ private(?!/temp) { - deny all; - } - - location ~ core { - deny all; - location ~* \.js$ { - allow all; - } - } + location ~ private { + deny all; + location ~* /temp/.*\.zip$ { + allow all; + } + } + + location ~ core { + deny all; + location ~* \.js$ { + allow all; + } + } # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;