mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-01-16 10:32:12 +01:00
26 lines
519 B
Plaintext
26 lines
519 B
Plaintext
# nginx/conf.d/default.conf
|
|
|
|
upstream dashboard {
|
|
server web:8000;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
location / {
|
|
proxy_pass http://dashboard;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $host;
|
|
proxy_redirect off;
|
|
}
|
|
|
|
location /static/ {
|
|
alias /app/staticfiles/;
|
|
}
|
|
|
|
location /media/ {
|
|
alias /app/media/;
|
|
}
|
|
}
|