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.

28 lines
668 B

server {
listen 80;
server_name HOSTNAME;
root STATICROOT;
index index.html;
location /mhapi/ {
uwsgi_pass unix:///run/uwsgi/app/mhapi/mhapi.socket;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
uwsgi_cache mhapi;
uwsgi_cache_key $request_uri;
uwsgi_cache_valid 200 302 1h;
uwsgi_cache_valid 301 1d;
uwsgi_cache_valid any 1m;
uwsgi_cache_min_uses 1;
uwsgi_cache_use_stale error timeout invalid_header http_500;
}
gzip on;
gzip_disable "msie6";
gzip_min_length 500;
gzip_proxied no-store no-cache private expired auth;
gzip_types text/plain text/css application/json;
}