|
|
@ -37,6 +37,7 @@ public abstract class AppTemplateBase : TemplateInfo |
|
|
ConfigureTieredArchitecture(context, steps); |
|
|
ConfigureTieredArchitecture(context, steps); |
|
|
ConfigurePublicWebSite(context, steps); |
|
|
ConfigurePublicWebSite(context, steps); |
|
|
ConfigureTheme(context, steps); |
|
|
ConfigureTheme(context, steps); |
|
|
|
|
|
ConfigureVersion(context, steps); |
|
|
RemoveUnnecessaryPorts(context, steps); |
|
|
RemoveUnnecessaryPorts(context, steps); |
|
|
RandomizeSslPorts(context, steps); |
|
|
RandomizeSslPorts(context, steps); |
|
|
RandomizeStringEncryption(context, steps); |
|
|
RandomizeStringEncryption(context, steps); |
|
|
@ -489,6 +490,14 @@ public abstract class AppTemplateBase : TemplateInfo |
|
|
steps.Add(new RemoveUnnecessaryPortsStep()); |
|
|
steps.Add(new RemoveUnnecessaryPortsStep()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void ConfigureVersion(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
|
|
|
{ |
|
|
|
|
|
if (context.BuildArgs.Version == null || SemanticVersion.Parse(context.BuildArgs.Version) >= SemanticVersion.Parse("6.0.0-rc.1")) |
|
|
|
|
|
{ |
|
|
|
|
|
context.Symbols.Add("newer-than-6.0"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
protected void RandomizeSslPorts(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
protected void RandomizeSslPorts(ProjectBuildContext context, List<ProjectBuildPipelineStep> steps) |
|
|
{ |
|
|
{ |
|
|
if (context.BuildArgs.ExtraProperties.ContainsKey("no-random-port")) |
|
|
if (context.BuildArgs.ExtraProperties.ContainsKey("no-random-port")) |
|
|
|