Commit 2f9edc1efb5d582ae5fe6d44dcba2db310a4a527

Authored by Alexis Gavoty
Exists in master

Merge pull request #6 from opi/patch-1

Include SSOWAT user panel.

Showing 1 changed file 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
18 # Include SSOWAT user panel.
19 include conf.d/yunohost_panel.conf.inc;
17 } 20 }
18 21
19 location ~ ^PATHTOCHANGE/(data|config|\.ht|db_structure\.xml|README) { 22 location ~ ^PATHTOCHANGE/(data|config|\.ht|db_structure\.xml|README) {
20 deny all; 23 deny all;
21 } 24 }
22 25
23 26