From bd1cde3535d09ce923e7853f34bc6bd9b4eb03ae Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 23 May 2017 22:25:30 +0200 Subject: [PATCH] nginx doesn't to like recursive location Was producing the error: [emerg] location "ynhpanel\.(js|json|css)" cannot be inside the named location "@searx" in /etc/nginx/conf.d/yunohost_panel.conf.inc:7 --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 303ba80..7f6b78d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,6 +5,9 @@ location __PATH__ { rewrite ^ https://$server_name$request_uri? permanent; } try_files $uri @searx; + + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; } location @searx { @@ -12,7 +15,4 @@ location @searx { include uwsgi_params; uwsgi_modifier1 30; uwsgi_pass unix:///run/uwsgi/app/searx/socket; - - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; }