update nginx config
use more const ref