【发布时间】:2017-03-08 13:09:01
【问题描述】:
我有一个小网站,它有一个联系我页面,对于这个页面我使用System.Net.Mail 并关注this tutorial。
我现在的问题是我在 Azure 上托管我的网站并使用 Github 作为源代码控制和部署。
当然,问题是我的所有代码都将在 Github 上公开,并且凭据已公开。
如何使用 Azure 保护这些信息不让公众知道? 我一直在研究“应用设置”部分,但我不能 100% 确定如何正确处理。
<system.net>
<mailSettings>
<smtp from="mail@outlook.com">
<network host="smtp-mail.outlook.com"
port="587"
userName="mail@outlook.com"
password="notarealpassword"
enableSsl="true" />
</smtp>
</mailSettings>
</system.net>
【问题讨论】:
标签: asp.net-mvc security azure github azure-web-app-service