mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 05:25:40 +00:00
21 lines
466 B
Nginx Configuration File
21 lines
466 B
Nginx Configuration File
|
|
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;
|
|
}
|
|
} |