dird: improve rest_api config

- remove static_folder config
- move wsgi_socket to rest_api config