34 lines
620 B
Nginx Configuration File
34 lines
620 B
Nginx Configuration File
upstream django {
|
|
server web:8001;
|
|
}
|
|
|
|
server {
|
|
set $APP_HOME /var/www/kwork-vbaportal;
|
|
|
|
listen 80;
|
|
charset utf-8;
|
|
|
|
# max upload size
|
|
client_max_body_size 75M; # adjust to taste
|
|
|
|
# Django media
|
|
location /media {
|
|
autoindex on;
|
|
alias $APP_HOME/media;
|
|
}
|
|
|
|
location /static {
|
|
autoindex on;
|
|
alias $APP_HOME/assets;
|
|
}
|
|
|
|
location / {
|
|
uwsgi_pass django;
|
|
uwsgi_read_timeout 300;
|
|
keepalive_timeout 70;
|
|
proxy_read_timeout 1200s;
|
|
|
|
include /etc/nginx/uwsgi_params;
|
|
include /etc/nginx/proxy_params;
|
|
}
|
|
} |