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
This commit is contained in:
Laurent Peuch 2017-05-23 22:25:30 +02:00 committed by GitHub
parent 8d0a4f4a9b
commit bd1cde3535
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}