1
0
Fork 0
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:
tituspijean 2024-05-04 23:24:42 +02:00
parent bc18e9ac46
commit a452348da8
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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