
upstream django_upstream {
    server django_app:8000;
}

server {
    listen 80;
    server_name rrbec.local.com;

    location /static/ {
        alias /app/gestaoRaul/static/;
    }

    location / {
        proxy_pass http://django_upstream;
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}