local.conf 432 Bytes
Newer Older
carlosribas's avatar
carlosribas committed
1 2 3 4 5 6 7 8 9 10 11
# Gunicorn application
upstream rnacentral {
    server rnacentral:8000;
}

server {
    listen 80;

    location / {
        # everything is passed to Gunicorn
        proxy_pass http://rnacentral;
12 13 14
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_redirect off;
carlosribas's avatar
carlosribas committed
15 16 17 18
    }

    location /static/ {
        autoindex on;
19
        alias /srv/rnacentral/static/;
carlosribas's avatar
carlosribas committed
20 21
    }
}