user nginx;
pid /run/nginx.pid;
worker_processes 1;
error_log /dev/stderr warn;

events {
	worker_connections 1024;
}

http {
	include mime.types;
	default_type application/octet-stream;

	access_log off;
	server_tokens off;
	client_max_body_size 100m;
	keepalive_timeout 65;
	sendfile on;
	tcp_nodelay on;

	server {
		listen 8010;
		server_name localhost;

		root /srv/seeddms/www;
		index index.php;

		location / {
			try_files $uri $uri/ /index.php$is_args$args;
		}

		location ~ \.php$ {
			fastcgi_pass unix:/var/run/seeddms.sock;
			fastcgi_param SCRIPT_FILENAME $request_filename;
			fastcgi_index index.php;
			include fastcgi_params;
		}
	}
}