Browse Source

frontend goes to /panel/, which "understand" users

boyska 5 years ago
parent
commit
f724dddb02
2 changed files with 12 additions and 2 deletions
  1. 11 1
      docker/frontend-apache.conf
  2. 1 1
      panel

+ 11 - 1
docker/frontend-apache.conf

@@ -70,7 +70,7 @@ DBDParams "host=db dbname=feeds user=apache password=apachepass"
 <Location "/login/do">
 SetHandler form-login-handler
 Use Auth
-AuthFormLoginSuccessLocation "/tt-rss/"
+AuthFormLoginSuccessLocation "/panel/"
 </Location>
 
 <Directory />
@@ -210,4 +210,14 @@ ProxyPassReverse http://rss-bridge/
 Require all granted
 </Location>
 
+<Location /panel/>
+ProxyPass http://panel:8000/panel/
+ProxyPassReverse http://panel:8000/panel/
+Use Auth
+Require valid-user
+RewriteEngine on
+RewriteRule .* - [E=RU:%{LA-U:REMOTE_USER},NS]
+RequestHeader set X-Forwarded-User %{RU}e
+</Location>
+
 # vim: set ft=apache bkc=yes:

+ 1 - 1
panel

@@ -1 +1 @@
-Subproject commit d7fcf9f249f9f4ecdb078e6b1fadb880fcfc66ab
+Subproject commit 5abac50fca9b5ce0bfc7dddbed88d48f184900cc