As I am logging my entire models and params into mlflow I thought it will be a good idea to have it protected under a user name and password.
I use the following code to run the mlflow server
mlflow server --host 0.0.0.0 --port 11111
works perfect,in mybrowser i type myip:11111
and i see everything (which eventually is the problem)
If I understood the documentation and the following https://groups.google.com/forum/#!topic/mlflow-users/E9QW4HdS8a8 link here correct, I should use nginx to create the authentication.
I installed nginx open sourcre
and apache2-utils
created sudo htpasswd -c /etc/apache2/.htpasswd user1
user and passwords.
I edited my /etc/nginx/nginx.conf
to the following:
server {
listen 80;
listen 443 ssl;
server_name my_ip;
root NOT_SURE_WHICH_PATH_TO_PUT_HERE, THE VENV?;
location / {
proxy_pass my_ip:11111/;
auth_basic "Restricted Content";
auth_basic_user_file /home/path to the password file/.htpasswd;
}
}
but no authentication appears.
if I change the conf to listen to listen 11111
I get an error that the port is already in use ( of course, by the mlflow server....)
my wish is to have a authentication window before anyone can enter by the mlflow with a browser.
would be happy to hear any suggestions.