Commit 8ac2193a38752bc49ff496176ead2dc79184704c

Authored by Alexis Gavoty
1 parent eca7c47c39
Exists in master

Correct user panel inclusion

Showing 1 changed file with 2 additions and 1 deletions Inline Diff

1 location PATHTOCHANGE { 1 location PATHTOCHANGE {
2 alias ALIASTOCHANGE; 2 alias ALIASTOCHANGE;
3 if ($scheme = http) { 3 if ($scheme = http) {
4 rewrite ^ https://$server_name$request_uri? permanent; 4 rewrite ^ https://$server_name$request_uri? permanent;
5 } 5 }
6 client_max_body_size 10G; 6 client_max_body_size 10G;
7 index index.php; 7 index index.php;
8 try_files $uri $uri/ /index.php; 8 try_files $uri $uri/ /index.php;
9 location ~ [^/]\.php(/|$) { 9 location ~ [^/]\.php(/|$) {
10 fastcgi_split_path_info ^(.+?\.php)(/.*)$; 10 fastcgi_split_path_info ^(.+?\.php)(/.*)$;
11 fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock; 11 fastcgi_pass unix:/var/run/php5-fpm-NAMETOCHANGE.sock;
12 include fastcgi_params; 12 include fastcgi_params;
13 fastcgi_param REMOTE_USER $remote_user; 13 fastcgi_param REMOTE_USER $remote_user;
14 fastcgi_param PATH_INFO $fastcgi_path_info; 14 fastcgi_param PATH_INFO $fastcgi_path_info;
15 fastcgi_param HTTPS on; 15 fastcgi_param HTTPS on;
16 } 16 }
17 17
18 # Include SSOWAT user panel. 18 # Include SSOWAT user panel.
19 include conf.d/yunohost_panel.conf.inc; 19 sub_filter </head> '<script type="text/javascript" src="/ynhpanel.js"></script></head>';
20 sub_filter_once on;
20 } 21 }
21 22
22 location ~ ^PATHTOCHANGE/(data|config|\.ht|db_structure\.xml|README) { 23 location ~ ^PATHTOCHANGE/(data|config|\.ht|db_structure\.xml|README) {
23 deny all; 24 deny all;
24 } 25 }
25 26
26 27