Skip to content

Configuring RabbitMQ user and password #3560

Answered by timheuer
alex-todorov-j2 asked this question in Q&A
Discussion options

You must be logged in to vote

Use parameters and the ctor of the AddRabbitMQ method:

var rabbitUser = builder.AddParameter("RabbitUser");
var rabbitPass = builder.AddParameter("RabbitPassword", true);

var msgBroker = builder.AddRabbitMQ("messaging", rabbitUser, rabbitPass);

using this method would be looking for Configuration value of Parameters:RabbitUser and such (could put in user secrets, appsettings)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@alex-todorov-j2
Comment options

Answer selected by alex-todorov-j2
Comment options

You must be logged in to vote
1 reply
@davidfowl
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants