mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
Regex ok
This commit is contained in:
parent
72b867f061
commit
82548a52e5
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
location __PATH__ {
|
||||
location __PATH__/ {
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue