# Define the user that will own and run the Nginx server worker_processes 1; #daemon off; # Prevent forking pid /tmp/nginx.pid; error_log /var/log/nginx/error.log; events { # defaults } http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log combined; server { listen 80; client_max_body_size 5m; keepalive_timeout 5; proxy_read_timeout 1200s; location /elb-status { access_log off; return 200; } location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; resolver 169.254.169.253; set $mlflow mlflowservice.http-api.local; proxy_pass http://$mlflow:5000; auth_basic "Administrator’s Area"; auth_basic_user_file /etc/nginx/.htpasswd; } } }