Created
September 18, 2014 13:21
-
-
Save ianfnelson/39f59158121ec4069128 to your computer and use it in GitHub Desktop.
Snippet from 2009 blog post "appSettings considered harmful"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<appSettings> | |
<add key="SmtpServer" value="smtp.mycompany.com" /> | |
<add key="bgColor" value="lightsteelblue" /> | |
<!-- <add key="connstr" value="Server=TestDB;initial catalog=DBName;Integrated Security=SSPI" /> --> | |
<add key="connstr" value="Server=LiveDB;initial catalog=DBName;Integrated Security=SSPI" /> | |
<add key="PageSize" value="20" /> | |
<add key="Homepage" value="/default.aspx" /> | |
<add key="FooServiceLicenseKey" value="YR39-WN51-CB73-DF62" /> | |
<add key="SendEmails" value="True" /> | |
<add key="FontName" value="Arial" /> | |
<add key="CookieName" value="Foo" /> | |
<add key="AdminTabVisible" value="False" /> | |
<add key="BetaTabVisible" value="False" /> | |
<add key="NotesTabVisible" value="False" /> | |
<add key="IntranetURL" value="http://intranet.mycompany.com" /> | |
<add key="DummyCustomerID" value="99" /> | |
<add key="TimeoutPeriod" value="150" /> | |
<add key="ShowErrors" value="2" /> | |
<add key="PostcodeRegEx" value="^([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9]?[A-Za-z])))) {0,1}[0-9][A-Za-z]{2})$" /> | |
<add key="FirstDayOfWeek" value="1" /> | |
<add key="Environment" value="Test" /> | |
<add key="AdminUsers" value="smithj,brownc,davist" /> | |
<add key="ValidityPeriod" value="20" /> | |
<add key="ExchangeRate" value="1.50" /> | |
<add key="ExchangeRateEUR" value="1.10" /> | |
<add key="EmailBody" value="Dear {0}\nThank you for your email, one of our operatives will be in touch shortly." /> | |
</appSettings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment