update nginx config

- p for 'api'
- r for 'resource'
init user table
missed element in last commit