server { listen 8000; server_name localhost; access_log /var/log/nginx/access_nailgun.log; error_log /var/log/nginx/error_nailgun.log debug; charset utf-8; client_max_body_size 10M; location = /favicon.ico { log_not_found off; access_log off; } gzip on; gzip_min_length 1000; gzip_types text/plain application/json; location /static { autoindex on; alias /usr/share/nailgun/static; } location /dump { alias /var/www/nailgun/dump; } location ~ ^/ostf/(.*) { proxy_pass http://10.20.0.2:8777/v1/$1; proxy_buffering off; } location ~ ^/keystone/(.*) { proxy_pass http://10.20.0.2:5000/$1; proxy_buffering off; } location / { root /usr/share/nailgun/static; } location /api { include uwsgi_params; uwsgi_pass 10.20.0.2:8001; client_max_body_size 100m; } }