Only set up routing for single AdminServer
Non-shadow nodes should not have the AdminServer exposed.
@@ -4665,9 +4665,11 @@ HOSTS
start_cmd = "#{script} -p #{service_port}"
start_cmd << ' --verbose' if @options['verbose'].downcase == 'true'
MonitInterface.start(:admin_server, start_cmd)
+ if my_node.is_shadow?
Nginx.create_service_config('appscale-admin', my_node.private_ip,
service_port, nginx_port)
end
+ end
def start_memcache()
@state = "Starting up memcache"
