Ilan
May 15, 2018, 4:30pm
1
Trying to override environment variables, but it does seems to take effect
export REMOTE_USER_LOGIN_ENABLED=True
export REMOTE_USER_HEADER="UserName"
The
export REDASH_PASSWORD_LOGIN_ENABLED=False
and LOG_LEVEL are taking effect
listed the environment variable using
sudo -u redash bin/run ./manage.py check_settings
and by logging the redash/settings/__init__.py
script
Is there anyway to know for sure what are the value used ?
is the REMOTE_USER should be setup elsewhere?
Technical details:
Redash Version: 3.0.0.b3134
Self hosted installation on Ubuntu 16.04
Thanks
Ilan
Did you restart the process after updating .env
?
Ilan
May 16, 2018, 8:52am
3
Yes, several times via
sudo supervisorctl restart all
and by restarting the machine
What is the full path of the .env
file you’re editing? When listing the values with check_settings
– does it show the new settings?
Ilan
May 22, 2018, 8:14am
5
The .env is located in /opt/redash/.env
There is a link from/opt/redash/current/.env
pointing to the file
The check_settings
shows the default values of the variables
REMOTE_USER_LOGIN_ENABLED = False
REMOTE_USER_HEADER = X-Forwarded-Remote-User
other values from the .env file like REDASH_LOG_LEVEL or REDASH_ADDITIONAL_QUERY_RUNNERS are coming into effect
thx,
I just realized you’re using wrong names… it should be:
export REDASH_REMOTE_USER_LOGIN_ENABLED=True
export REDASH_REMOTE_USER_HEADER="UserName"
(note the REDASH_
prefix)