# ENERPIWEB NGINX Config:

# Append the NGINX config to your actual server, or make the next symlink:
# sudo ln -s {file_location}/{filename} /etc/nginx/sites-enabled/

server {
    listen      80;
    server_name enerpi.local;
    charset     utf-8;
    client_max_body_size 75M;

    # EnerpiWeb
    location = /enerpi { rewrite ^ /enerpi/; }
    location /enerpi/ {
        include uwsgi_params;
        uwsgi_param {path_enerpiweb}/__main__.py /enerpi;
        uwsgi_pass unix:/tmp/enerpiweb.sock;
        uwsgi_read_timeout 300;
    }
}
