mirror of
https://github.com/YunoHost-Apps/superset_ynh.git
synced 2024-09-03 20:26:31 +02:00
Correctly use the proxy headers
This commit is contained in:
parent
bc18e9ac46
commit
a452348da8
2 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,7 @@ location __PATH__/ {
|
|||
proxy_set_header Connection "Upgrade";
|
||||
|
||||
# preserve client IP
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
client_max_body_size 50M;
|
||||
|
|
|
@ -21,3 +21,5 @@ AUTH_ROLES_MAPPING = {
|
|||
"cn=__APP__.admin,ou=permission,dc=yunohost,dc=org": ["Admin"],
|
||||
}
|
||||
AUTH_ROLES_SYNC_AT_LOGIN = True
|
||||
|
||||
ENABLE_PROXY_FIX = True
|
||||
|
|
Loading…
Add table
Reference in a new issue