1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

corrections http_auth

This commit is contained in:
plopoyop 2014-07-23 16:56:39 +02:00
parent c0a177db77
commit aed810e725
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@
'default_user' => 'yunoadminuser', 'default_user' => 'yunoadminuser',
'allow_anonymous' => false, 'allow_anonymous' => false,
'allow_anonymous_refresh' => false, 'allow_anonymous_refresh' => false,
'auth_type' => 'http', 'auth_type' => 'http_auth',
'api_enabled' => true, 'api_enabled' => true,
'unsafe_autologin_enabled' => false, 'unsafe_autologin_enabled' => false,
), ),

View file

@ -3,14 +3,14 @@ location PATHTOCHANGE {
if ($scheme = http) { if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent; rewrite ^ https://$server_name$request_uri? permanent;
} }
index index.php; index index.html index.php;
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php; fastcgi_index index.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param AUTH_USER $remote_user; fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
} }