mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-21 18:41:35 +01:00
Try improve reverse proxy authentication
This commit is contained in:
parent
79559c0fb2
commit
521fe69644
@ -40,9 +40,8 @@ ENABLE_NOTIFY_MAIL = true
|
||||
DISABLE_REGISTRATION = true
|
||||
ENABLE_CAPTCHA = false
|
||||
REQUIRE_SIGNIN_VIEW = false
|
||||
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
||||
ENABLE_REVERSE_PROXY_AUTHENTICATION = true
|
||||
ENABLE_REVERSE_PROXY_AUTO_REGISTERATION = false
|
||||
ENABLE_BASIC_AUTHENTICATION = true
|
||||
|
||||
[picture]
|
||||
AVATAR_UPLOAD_PATH = __DATA_PATH__/avatars
|
||||
@ -74,3 +73,4 @@ XORM = file
|
||||
INSTALL_LOCK = true
|
||||
SECRET_KEY = __KEY__
|
||||
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE_USER
|
||||
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
|
||||
|
@ -3,7 +3,6 @@ location __PATH__/ {
|
||||
proxy_pass http://localhost:__PORT__/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_buffering off;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
client_max_body_size 200M;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user