Browse Source

make ttrss forward logout to the central auth

boyska 5 years ago
parent
commit
a34201ba9b
4 changed files with 17 additions and 1 deletions
  1. 5 0
      docker/frontend-apache.conf
  2. 8 0
      docker/frontend-login/logout.html
  3. 3 0
      docker/ttrss-config.php
  4. 1 1
      tt-rss

+ 5 - 0
docker/frontend-apache.conf

@@ -72,6 +72,11 @@ SetHandler form-login-handler
 Use Auth
 AuthFormLoginSuccessLocation "/panel/"
 </Location>
+<Location "/logout">
+    SetHandler form-logout-handler
+    AuthFormLogoutLocation "/login/logout.html"
+    Session on
+</Location>
 
 <Directory />
     AllowOverride none

+ 8 - 0
docker/frontend-login/logout.html

@@ -0,0 +1,8 @@
+<!doctype html>
+<html>
+    <body>
+        <p>You have been logged out.</p>
+
+        <p><a href="/login/">Login</a> again?</p>
+    </body>
+</html>

+ 3 - 0
docker/ttrss-config.php

@@ -90,6 +90,8 @@
 	// If set to true, users won't be able to set application language
 	// and settings profile.
 
+    define ('LOGOUT_LOCATION', '/logout');
+
 	// *********************
 	// *** Feed settings ***
 	// *********************
@@ -197,5 +199,6 @@
 	// if necessary (after migrating all new options from this file).
 
     define('AUTHPROXY_WHITELIST_NAME', 'feedati-fe');
+    //define('AUTHPROXY_WHITELIST_IP', '172.18.0.1');
 
 	// vim:ft=php bkc=yes:

+ 1 - 1
tt-rss

@@ -1 +1 @@
-Subproject commit d6ab5df482ebe96c849a1c0103d8c6e880699f38
+Subproject commit 6b0ef3d2112a19268810b381ece0a18b2050ee1f