Fix nginx conf syntax

And add config check to Dockerfile