Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Setup User secrets for the project

Env values

	RMQ_URL=<amqp://<username>:<password>@<hostname>:5672/v_host>
	MAIL_USERNAME=<email_username>
	MAIL_PASSWORD=<email_password>
	TRANSACTION_QUEUE=<queue_name>
	ADMIN_QUEUE=<queue_name>

With Visual Studio

  1. Open the project in Visual Studio

  2. Right click on the project and select Manage User Secrets

  3. Add the following secrets to the secrets.json file:

    {
      "MailTrap": {
    	"USERNAME": "<username>",
    	"PASSWORD": "<password>"
      },
      "RabbitMQ": {
    	"RMQ_URL": "amqp://<username>:<password>@<hostname>:5672/"
      }
    }
    

With .NET CLI

  1. Open a terminal in the project directory

  2. Run the following commands:

    dotnet user-secrets init
    dotnet user-secrets set "RabbitMQ:RMQ_URL" "amqp://<username>:<password>@<hostname>:5672/"
    dotnet user-secrets set "MailTrap:USERNAME" "<username>"
    dotnet user-secrets set "MailTrap:PASSWORD" "<password>"
  3. Verify that the secret was added by running:

    dotnet user-secrets list
  4. The output should be similar to:

    RabbitMQ:RMQ_URL = amqp://<username>:<password>@<hostname>:5672/
    MailTrap:USERNAME = <username>
    MailTrap:PASSWORD = <password>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages