server {
	listen 80 default_server;

	access_log /var/log/nginx/raveberry.access.log;
	error_log /var/log/nginx/raveberry.error.log;

	location / {
			proxy_pass http://127.0.0.1:8000;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
			proxy_set_header Host $http_host;
			proxy_set_header X-Real-IP $remote_addr;
			proxy_redirect off;
	}

	location /static {
		alias "$SERVER_ROOT/static";
	}

	location /stream {
		proxy_pass http://127.0.0.1:8000;
	}

}
