-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make uuid middleware work with other service-registry than mdns #1435
Comments
AFAIU the default registry is mdns, but it can be changed to etcd by setting MICRO_REGISTRY="etcd". but ... we need to pass the registry Option to the micro client as well, because the exampleso use the micre cmd which parses the env variable and passes it accordingly https://github.com/micro/go-micro/blob/4f0f4326df8bef9c0d1b81d79792500b38a942f2/config/cmd/cmd.go#L440 |
See https://github.com/owncloud-docker/compose-playground/blob/master/examples/services/add-user/add-user.go#L17 for an example. Maybe there is even a better way which does not require instantiation of a new service?
Micro controls the service-registry type with the environment variable MICRO_REGISTRY. This setting does not work because the proxy is not wrapped in a micro-service.
Two possible routes to fix this:
The text was updated successfully, but these errors were encountered: