diff --git a/conf/nginx.conf b/conf/nginx.conf index 6407144..bdef812 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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; diff --git a/conf/superset_config.py b/conf/superset_config.py index 91fa8fc..36f1489 100644 --- a/conf/superset_config.py +++ b/conf/superset_config.py @@ -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