File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11param ([string ]$SiteName = " NuGet Gallery" , [string ]$SitePhysicalPath , [string ]$AppCmdPath )
22
3- function Get-SiteFQDN () {return " localhost" }
3+ function Get-SiteFQDN () {return " localhost" } # DevSkim: ignore DS162092
44function Get-SiteHttpHost () {return " $ ( Get-SiteFQDN ) :80" }
55function Get-SiteHttpsHost () {return " $ ( Get-SiteFQDN ) :443" }
66
@@ -88,7 +88,7 @@ if(!(Test-Path $AppCmdPath)) {
8888
8989# Enable access to the necessary URLs
9090# S-1-1-0 is the unlocalized version for: user=Everyone
91- Invoke-Netsh http add urlacl " url=http://$ ( Get-SiteHttpHost ) /" " sddl=D:(A;;GX;;;S-1-1-0)"
91+ Invoke-Netsh http add urlacl " url=http://$ ( Get-SiteHttpHost ) /" " sddl=D:(A;;GX;;;S-1-1-0)" # DevSkim: ignore DS137138
9292Invoke-Netsh http add urlacl " url=https://$ ( Get-SiteHttpsHost ) /" " sddl=D:(A;;GX;;;S-1-1-0)"
9393
9494$SiteFullName = " $SiteName ($ ( Get-SiteFQDN ) )"
@@ -99,7 +99,7 @@ if($sites.Length -gt 0) {
9999 & $AppCmdPath delete site " $SiteFullName "
100100}
101101
102- & $AppCmdPath add site / name:" $SiteFullName " / bindings:" http://$ ( Get-SiteHttpHost ) ,https://$ ( Get-SiteHttpsHost ) " / physicalPath:$SitePhysicalPath
102+ & $AppCmdPath add site / name:" $SiteFullName " / bindings:" http://$ ( Get-SiteHttpHost ) ,https://$ ( Get-SiteHttpsHost ) " / physicalPath:$SitePhysicalPath # DevSkim: ignore DS137138
103103
104104Write-Host " [DONE] Setting up IIS Express" - ForegroundColor Cyan
105105Write-Host " [BEGIN] Setting SSL Certificate" - ForegroundColor Cyan
You can’t perform that action at this time.
0 commit comments