comixify/nginx.conf
2018-08-07 09:29:16 +02:00

25 lines
No EOL
572 B
Nginx Configuration File

upstream hello_server {
server web:8080;
}
server {
listen 8080;
server_name localhost;
access_log /var/log/nginx/app.log;
error_log /var/log/nginx/error.log;
client_max_body_size 50M;
location / {
# everything is passed to Gunicorn
proxy_pass http://hello_server;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /comixify/static/;
}
location /media/ {
alias /comixify/media/;
}
}