Try improve reverse proxy authentication

This commit is contained in:
Josué Tille 2021-10-26 07:47:40 +02:00
parent 79559c0fb2
commit 521fe69644
No known key found for this signature in database
GPG Key ID: 716A6C99B04194EF
2 changed files with 2 additions and 3 deletions

View File

@ -40,9 +40,8 @@ ENABLE_NOTIFY_MAIL = true
DISABLE_REGISTRATION = true DISABLE_REGISTRATION = true
ENABLE_CAPTCHA = false ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false REQUIRE_SIGNIN_VIEW = false
ENABLE_REVERSE_PROXY_AUTHENTICATION = false ENABLE_REVERSE_PROXY_AUTHENTICATION = true
ENABLE_REVERSE_PROXY_AUTO_REGISTERATION = false ENABLE_REVERSE_PROXY_AUTO_REGISTERATION = false
ENABLE_BASIC_AUTHENTICATION = true
[picture] [picture]
AVATAR_UPLOAD_PATH = __DATA_PATH__/avatars AVATAR_UPLOAD_PATH = __DATA_PATH__/avatars
@ -74,3 +73,4 @@ XORM = file
INSTALL_LOCK = true INSTALL_LOCK = true
SECRET_KEY = __KEY__ SECRET_KEY = __KEY__
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE_USER REVERSE_PROXY_AUTHENTICATION_USER = REMOTE_USER
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128

View File

@ -3,7 +3,6 @@ location __PATH__/ {
proxy_pass http://localhost:__PORT__/; proxy_pass http://localhost:__PORT__/;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_buffering off; proxy_buffering off;
fastcgi_param REMOTE_USER $remote_user;
client_max_body_size 200M; client_max_body_size 200M;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;