30 lines
689 B
Nginx Configuration File
30 lines
689 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
client_max_body_size 100M;
|
|
server {
|
|
listen 80;
|
|
|
|
location /static/ {
|
|
alias /static/;
|
|
autoindex on;
|
|
}
|
|
|
|
location /serve_media/ {
|
|
alias /media/;
|
|
autoindex on;
|
|
}
|
|
|
|
location / {
|
|
proxy_redirect off;
|
|
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;
|
|
proxy_pass http://app:8000;
|
|
}
|
|
}
|
|
}
|