Skip to content

Instantly share code, notes, and snippets.

@gandroz
Last active January 10, 2020 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gandroz/2a510641c67cffdf616846fd63a1a0bc to your computer and use it in GitHub Desktop.
Save gandroz/2a510641c67cffdf616846fd63a1a0bc to your computer and use it in GitHub Desktop.
MLflow server configuration
# Define the parameters for a specific virtual host/server
server {
# Define the server name, IP address, and/or port of the server
listen 80;
# Define the specified charset to the “Content-Type” response header field
charset utf-8;
# Configure NGINX to reverse proxy HTTP requests to the upstream server (uWSGI server)
location / {
# Define the location of the proxy server to send the request to
proxy_pass http://web:5000;
# Redefine the header fields that NGINX sends to the upstream server
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment