Skip to content
DC edited this page Apr 24, 2014 · 1 revision
server {
    listen 80;
    server_name doufm.info;
    #root /path/to/wang_fm/static;

    location / {
        root /path/to/wang_fm/templates;
        index index.html;
    }

    location /api/ {
        include uwsgi_params;
        uwsgi_pass unix:/tmp/uwsgi.sock;
        limit_conn addr 8;
        limit_rate 256k;
    }

    location ~ ^/static/ {
        root /path/to/wang_fm;
        expires 30m;
    }
}

Clone this wiki locally