setup nginx and credential files
nginx refactor