2018-07-31 19:51:39 +00:00
|
|
|
upstream hello_server {
|
2018-08-26 20:35:31 +00:00
|
|
|
server web:8008;
|
2018-07-31 19:51:39 +00:00
|
|
|
}
|
|
|
|
|
|
2018-09-25 09:14:44 +00:00
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
server_name localhost;
|
|
|
|
|
client_max_body_size 50M;
|
2018-07-31 19:51:39 +00:00
|
|
|
location / {
|
|
|
|
|
# everything is passed to Gunicorn
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_redirect off;
|
2018-08-27 22:15:49 +00:00
|
|
|
proxy_pass http://hello_server;
|
2018-10-01 20:34:57 +00:00
|
|
|
proxy_connect_timeout 300;
|
|
|
|
|
proxy_send_timeout 300;
|
|
|
|
|
proxy_read_timeout 300;
|
|
|
|
|
send_timeout 300;
|
2018-07-31 19:51:39 +00:00
|
|
|
}
|
2018-12-12 23:36:05 +00:00
|
|
|
|
2018-07-31 19:51:39 +00:00
|
|
|
location /static/ {
|
|
|
|
|
alias /comixify/static/;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /media/ {
|
|
|
|
|
alias /comixify/media/;
|
|
|
|
|
}
|
2018-09-25 09:14:44 +00:00
|
|
|
}
|