I'm looking at setting up several Docker containers running uwsgi on a single host (development systems). My idea is to have the http-router handle all incoming requests and then use the subscription server for routing. The actual containers are running as RPC-style microservices.
The http-router is really simple: [uwsgi] http=0.0.0.0:8080 http-subscription-server=0.0.0.0:2626 master=true Each service then subscribes with a unique key: subscribe2 = server=127.0.0.1:2626,key=cc_auth_service I can get this working by sending in the HOST header to the name of my service/key above. That works but seems a little hacky. I don't understand how to match on anything other than the $HOST for "key". It is possible for the services to match on a special header rather than the host header..for example, X-CC-SERVICE-NAME? Thanks, BZ
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
