From 82548a52e56a28cba05603e41393bd90c22cc978 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 20 Mar 2015 18:27:58 +0100 Subject: [PATCH] Regex ok --- conf/nginx.conf | 2 +- scripts/install | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 732fb89..614897e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,4 @@ -location __PATH__ { +location __PATH__/ { if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } diff --git a/scripts/install b/scripts/install index 7c5af9e..26d645c 100644 --- a/scripts/install +++ b/scripts/install @@ -98,8 +98,8 @@ sudo sed -i "s@__PORT__@$port@g" /etc/nginx/conf.d/$domain.d/$app.conf # Make app public or private sudo yunohost app setting $app skipped_uris -v "/" if [ "$is_public" = "No" ]; -then # Si l'app est privée, seul le visionnage des images est public - sudo yunohost app setting $app protected_regex -v "/stats$","/manifest.webapp$","/$","/d/.*$","/m/.*$" +then # Si l'app est privée, seul le visionnage des images reste public + sudo yunohost app setting $app protected_regex -v "$path/stats$","$path/manifest.webapp$","$path/$","$path/d/.*$","$path/m/.*$" # sudo yunohost app setting $app skipped_regex -v "$domain/$path/[0-9A-Za-z]{8}" fi