Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
app settings param updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMatt57 committed Oct 21, 2016
1 parent a8ca993 commit b373dfc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
19 changes: 11 additions & 8 deletions DOL.WHD.Section14c.Api/Parameters.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<parameters>
<parameter name="UserLockoutEnabledByDefault" defaultValue="true">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='UserLockoutEnabledByDefault']" />
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='UserLockoutEnabledByDefault']/@value" />
</parameter>
<parameter name="PasswordExpirationDays" defaultValue="90">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='PasswordExpirationDays']/@value" />
</parameter>
<parameter name="DefaultAccountLockoutTimeSpan" defaultValue="15">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='DefaultAccountLockoutTimeSpan']" />
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='DefaultAccountLockoutTimeSpan']/@value" />
</parameter>
<parameter name="MaxFailedAccessAttemptsBeforeLockout" defaultValue="3">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='MaxFailedAccessAttemptsBeforeLockout']" />
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='MaxFailedAccessAttemptsBeforeLockout']/@value" />
</parameter>
<parameter name="AccessTokenExpireTimeSpanMinutes" defaultValue="3">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='AccessTokenExpireTimeSpanMinutes']" />
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='AccessTokenExpireTimeSpanMinutes']/@value" />
</parameter>
<parameter name="ConnectionString" defaultValue="ConnectionString">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/connectionStrings/add[@name='ApplicationDbContext']/@connectionString" />
</parameter>
<parameter name="ReCaptchaVerfiyUrl" defaultValue="https://www.google.com/recaptcha/api/siteverify">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='ReCaptchaVerfiyUrl']" />
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='ReCaptchaVerfiyUrl']/@value" />
</parameter>
<parameter name="ReCaptchaSecretKey" defaultValue="6LeqeggUAAAAAEY5KpgWZGkOHnkyQXmiSKg7tqsY">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='ReCaptchaSecretKey']" />
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='ReCaptchaSecretKey']/@value" />
</parameter>
<parameter name="AttachmentRepositoryRootFolder" defaultValue="AttachmentRepositoryRootFolder">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='AttachmentRepositoryRootFolder']" />
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='AttachmentRepositoryRootFolder']/@value" />
</parameter>
<parameter name="AllowedFileNamesRegex" defaultValue="^(.*\.(doc|docx|xls|xlsx|pdf|jpg|jpeg|png)$)?[^.]*$">
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='AllowedFileNamesRegex']" />
<parameterEntry kind="XmlFile" scope="web\.config$" match="/configuration/appSettings/add[@key='AllowedFileNamesRegex']/@value" />
</parameter>
</parameters>
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ All configurations for the Web project are set in the env.js. This file is exclu

| Setting | Description | Default
| --- | --- | ---
api_url | Full URL of the REST API Service | http://localhost:3334 (Local develoment URL)
reCaptchaSiteKey | reCaptcha Site Key | (Development Key with localhost enabled)
api_url* | Full URL of the REST API Service | http://localhost:3334 (Local develoment URL)
reCaptchaSiteKey* | reCaptcha Site Key | (Development Key with localhost enabled)

\* Must be configured during deployment

### 2. DOL.WHD.Section14c.API.zip

Expand All @@ -94,16 +96,20 @@ The following are setup as WebDeploy parameters and can be set with command line

| Setting | Description | Default
| --- | --- | ---
ConnectionString | PostgreSQL database connection string | No Deployment Default, must be set.
ReCaptchaVerfiyUrl | URL Application uses to verifu reCaptcha server-side | https://www.google.com/recaptcha/api/siteverify
ReCaptchaSecretKey | reCaptcha Secret Key sent with the server-side verification. If this key is not provided the server-side validation will be disabled. | No Deployment Default, must be set.
ConnectionString* | PostgreSQL database connection string | No Deployment Default
ReCaptchaVerfiyUrl* | URL Application uses to verifu reCaptcha server-side | https://www.google.com/recaptcha/api/siteverify
ReCaptchaSecretKey* | reCaptcha Secret Key sent with the server-side verification. If this key is not provided the server-side validation will be disabled. | No Deployment Default
AttachmentRepositoryRootFolder* | File Path (Local or UNC path) where application attachments should be stored | No Deployment Default
UserLockoutEnabledByDefault | Enables or Disabled user login attempt lockout | true
DefaultAccountLockoutTimeSpan | Minutes to lockout user | 15
MaxFailedAccessAttemptsBeforeLockout | Login attempts befer user is locked out | 3
PasswordExpirationDays | Number of days before password must be changes | 90
AccessTokenExpireTimeSpanMinutes | Token Expiration Minutes for Reset Password and Email Verification Links | 20160 (14 days, ASP.net Default)
AttachmentRepositoryRootFolder | File Path (UNC path) where application attachments shoudl be stored | No Deployment Default, must be set.
AllowedFileNamesRegex | Regex for allowed filenames | ^(.*\.(doc|docx|xls|xlsx|ppt|pptx|pdf)$)?[^.]*$

\* Must be configured during deployment


### 3. DotNet.CoverageReport.zip

This artifact contains static files of a ReportGenerator code coverage report for .Net. This is a development artifact and is not needed for production.

0 comments on commit b373dfc

Please sign in to comment.