https://github.com/NVIDIA/DIGITS
Raw File
Tip revision: 06e944880b198b6b21f3f326240c471179660f6d authored by Luke Yeager on 20 April 2015, 17:14:40 UTC
Validation set should be optional
Tip revision: 06e9448
nginx.site
# Montessori nginx site

server {
    listen 80;

    # Gunicorn server
    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_redirect off;

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    # Socketio
    location /socket.io {
        proxy_pass http://127.0.0.1:8080/socket.io;
        proxy_redirect off;
        proxy_buffering off;

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }

    # Static files
    # TODO: Set these locations yourself
#    location /static {
#        alias /MY_DIGITS_DIR/digits/static;
#    }
#    location /files {
#        alias /MY_JOBS_DIR;
#        autoindex on;
#        autoindex_exact_size off;
#        autoindex_localtime on;
#    }
}
back to top