From 1249058ae6611b21556b9cdd6228cce4c54d8b00 Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 26 Apr 2016 19:01:01 +0200 Subject: [PATCH] Only allow zip file --- conf/nginx.conf | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) 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;