Skip to content

Instantly share code, notes, and snippets.

@FrankDeGroot
Created September 25, 2014 18:56
Show Gist options
  • Select an option

  • Save FrankDeGroot/144016341fb00e19b969 to your computer and use it in GitHub Desktop.

Select an option

Save FrankDeGroot/144016341fb00e19b969 to your computer and use it in GitHub Desktop.
$environment = 'dev' # 'dev', 'test' or 'production'
$packagesDir = 'C:\Users\Administrator\Downloads\_PublishedWebsites'
$siteDir = 'C:\inetpub\wwwroot'
$domain = switch ($environment) { 'dev' { (Get-ChildItem ENV:computername).Value } default { 'OFFICE' } }
$sqlServerInstance = '.'
$reportServerUrl = 'http://rsbio01/ReportServer_ONTWIKKEL.123'
$certPath = 'Cert:\LocalMachine\WebHosting'
$certs = @()
$dummyCerts = @(
@{
friendlyName = 'test';
# Use '0.0.0.0' instead of '*' (for HTTP.SYS).
ip = '0.0.0.0';
port = '8000';
host = ''; #'mo.office.rovict.nl';
},
@{
friendlyName = 'test';
# Use '0.0.0.0' instead of '*' (for HTTP.SYS).
ip = '0.0.0.0';
port = '8001';
host = ''; #'moauthservice.office.rovict.nl';
},
@{
friendlyName = 'test';
# Use '0.0.0.0' instead of '*' (for HTTP.SYS).
ip = '0.0.0.0';
port = '8002';
host = ''; #'moauthclient.office.rovict.nl';
}
)
$sites = @(
@{
domain = $domain;
user = 'MOWebsite_User';
password = '34g1a0t5SQ/GG6+';
appPool = 'MOWebSiteAppPool';
name = 'MO';
scheme = 'http'; #'https';
ip = '*';
port = '8000';
host = ''; #'mo.office.rovict.nl';
dir = $siteDir;
package = '01 - Rovict.MO.WebApp';
sqlRoles = (
@{ db = 'MO'; role = 'roleWebApplication' },
@{ db = 'MO_Token'; role = 'roleWebApplication' },
@{ db = 'MO_Logging'; role = 'roleLogger' }
);
},
@{
domain = $domain;
user = 'MOAuthService_User';
password = '34g1a0t5SQ/GG6+';
appPool = 'MOAuthServiceAppPool';
name = 'MOAuthService';
scheme = 'http'; #'https';
ip = '*';
port = '8001';
host = ''; #'moauthservice.office.rovict.nl';
dir = $siteDir;
package = '02 - Rovict.MO.AuthenticationService';
sqlRoles = (
@{ db = 'MO_Token'; role = 'roleAuthenticationService' },
@{ db = 'MO_Logging'; role = 'roleLogger' }
);
})
# Add authentication client for dev and test.
switch -Regex ($environment)
{
'dev|test'
{
$sites += @{
domain = $domain;
user = '';
password = '';
appPool = 'MOAuthClient';
name = 'MOAuthClient';
scheme = 'http'; #'https';
ip = '*';
port = '8002';
host = ''; #'moauthclient.office.rovict.nl';
dir = $siteDir;
package = '05 - Rovict.MO.AuthenticationClient';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment