How to deploy ASP.NET Core UserSecrets to production

后端 未结 2 2055
说谎
说谎 2021-01-01 09:30

I followed the Safe storage of app secrets during development guide over on the asp.net docs during development but it does not describe how to use it when publishing to ano

2条回答
  •  渐次进展
    2021-01-01 09:48

    Don't use app secrets in production. Ever. As the article says DURING DEVELOPMENT.

    How you publish secrets in production is up to your production environment. Linux, Windows and Azure all support environment variables - that's where your secrets should go, using whatever UI your hosting provider gives you.

    The app settings documentation goes into this in greater detail

提交回复
热议问题