fix nginx config location & improve setting paths

[ci skip]