You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
421 B
24 lines
421 B
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
client_max_body_size 128M;
|
|
|
|
# serve media files
|
|
location /media/ {
|
|
alias /media/;
|
|
}
|
|
# pass requests for dynamic content to gunicorn
|
|
location / {
|
|
proxy_set_header Host $http_host;
|
|
proxy_pass http://web_recipes:8080;
|
|
|
|
error_page 502 /errors/http502.html;
|
|
}
|
|
|
|
location /errors/ {
|
|
alias /etc/nginx/conf.d/errorpages/;
|
|
internal;
|
|
}
|
|
}
|