Define connection workflow using nginx routines