adding config function for nginx