dev/front/hdalab.conf
author ymh <ymh.work@gmail.com>
Fri, 16 Mar 2018 18:54:11 +0100
changeset 691 8454f9cda0ca
parent 686 385e3a12ee27
permissions -rw-r--r--
Small corrections in prject setup file.

resolver 127.0.0.11;

# configuration of the server
server {
    # the port your site will be served on
    listen      80;
    # the domain name it will serve for
    server_name hdalab.test; # substitute your machine's IP address or FQDN
    charset     utf-8;

    # max upload size
    client_max_body_size 75M;   # adjust to taste

    location /static {
        alias /var/lib/hdalab/static;
    }

    set $upstream hdalab:8001;

    # Finally, send all non-media requests to the Django server.
    location / {
        uwsgi_pass  $upstream;
        include     uwsgi_params; # the uwsgi_params file you installed
    }
}