Running in daemon-less (foreground) mode

Create a config with:

# filename: server.conf
daemon off;

Run:

nginx -c "server.conf"

Minimum Config

1
2
3
4
5
6
7
8
9
10
11
12
daemon off;  # only for dev mode
events {}

http {
server {
listen 8888;

location / {
proxy_pass http://localhost:3000;
}
}
}