Let user gateway setup on workers instead of master.
Add the proxy to container on the worker on which the user gateway setup.
Add nginx proxy to workspace.
Add 3 items to docklet.conf. They are NGINX_PORT, DISTRIBUTED_GATEWAY, NGINX_CONF. You can read the descriptions on docklet.conf.template for more information.
Add nginx_config.sh to tools/.
Note: Must install nginx, you can run prepare.sh or 'apt-get install' to install nginx. After installing, please run nginx_config.sh by root to config nginx automatically. Before running nginx_config.sh, you must finish configuration of docklet, which means you must config docklet.conf first.