Update ark and nginx

- adapt to last nginx ck changes
- adapt to last ark ck changes