server {

    listen 80;
    server_name localhost;

    access_log /DjangoFiles/www/nginxAccess.log;
    error_log /DjangoFiles/www/nginxError.log;

    location /static {
        root /DjangoFiles/www;
    }

    location /media {
        root /DjangoFiles/www;
    }

    location / {
        # everything is passed to Gunicorn
        proxy_pass http://billeterie_django:8000;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_redirect off;
    }
}

