Browse Source
Enhanced template random SSL port feature.
pull/12526/head
maliming
4 years ago
No known key found for this signature in database
GPG Key ID: 96224957E51C89E
24 changed files with
64 additions and
84 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateBase.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/Module/ModuleTemplateBase.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server.Mongo/Properties/launchSettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server.Mongo/appsettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Properties/launchSettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/appsettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host.Mongo/Properties/launchSettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host.Mongo/appsettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Properties/launchSettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/appsettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc.Mongo/Properties/launchSettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc.Mongo/appsettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/Properties/launchSettings.json
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/appsettings.json
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server.Tiered/Properties/launchSettings.json
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server.Tiered/appsettings.json
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/Properties/launchSettings.json
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/appsettings.json
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/appsettings.json
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Host/Properties/launchSettings.json
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Host/wwwroot/appsettings.json
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Server.Host/Properties/launchSettings.json
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Server.Host/appsettings.json
-
templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Web/Properties/launchSettings.json
|
|
|
@ -405,7 +405,12 @@ public abstract class AppTemplateBase : TemplateInfo |
|
|
|
"https://localhost:44301", |
|
|
|
"https://localhost:44302", |
|
|
|
"https://localhost:44303", |
|
|
|
"https://localhost:44305" |
|
|
|
"https://localhost:44304", |
|
|
|
"https://localhost:44305", |
|
|
|
"https://localhost:44306", |
|
|
|
"https://localhost:44307", |
|
|
|
"https://localhost:44308", |
|
|
|
"https://localhost:44309" |
|
|
|
} |
|
|
|
) |
|
|
|
); |
|
|
|
|
|
|
|
@ -90,7 +90,9 @@ public abstract class ModuleTemplateBase : TemplateInfo |
|
|
|
"https://localhost:44300", |
|
|
|
"https://localhost:44301", |
|
|
|
"https://localhost:44302", |
|
|
|
"https://localhost:44303" |
|
|
|
"https://localhost:44303", |
|
|
|
"https://localhost:44304", |
|
|
|
"https://localhost:44305" |
|
|
|
})); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44313/", |
|
|
|
"sslPort": 44313 |
|
|
|
"applicationUrl": "https://localhost:44300/", |
|
|
|
"sslPort": 44300 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
"commandName": "Project", |
|
|
|
"dotnetRunMessages": "true", |
|
|
|
"launchBrowser": true, |
|
|
|
"applicationUrl": "https://localhost:44313/", |
|
|
|
"applicationUrl": "https://localhost:44300/", |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,13 +1,13 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44313", |
|
|
|
"RedirectAllowedUrls": "https://localhost:44313" |
|
|
|
"SelfUrl": "https://localhost:44300", |
|
|
|
"RedirectAllowedUrls": "https://localhost:44300" |
|
|
|
}, |
|
|
|
"ConnectionStrings": { |
|
|
|
"Default": "mongodb://localhost:27017/MyProjectName", |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44313", |
|
|
|
"Authority": "https://localhost:44300", |
|
|
|
"RequireHttpsMetadata": "false" |
|
|
|
}, |
|
|
|
"StringEncryption": { |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44313/", |
|
|
|
"sslPort": 44313 |
|
|
|
"applicationUrl": "https://localhost:44300/", |
|
|
|
"sslPort": 44300 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
"commandName": "Project", |
|
|
|
"dotnetRunMessages": "true", |
|
|
|
"launchBrowser": true, |
|
|
|
"applicationUrl": "https://localhost:44313/", |
|
|
|
"applicationUrl": "https://localhost:44300/", |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,13 +1,13 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44313", |
|
|
|
"RedirectAllowedUrls": "https://localhost:44313" |
|
|
|
"SelfUrl": "https://localhost:44300", |
|
|
|
"RedirectAllowedUrls": "https://localhost:44300" |
|
|
|
}, |
|
|
|
"ConnectionStrings": { |
|
|
|
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=MyProjectName;Trusted_Connection=True" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44313", |
|
|
|
"Authority": "https://localhost:44300", |
|
|
|
"RequireHttpsMetadata": "false" |
|
|
|
}, |
|
|
|
"StringEncryption": { |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44305", |
|
|
|
"sslPort": 44305 |
|
|
|
"applicationUrl": "https://localhost:44300", |
|
|
|
"sslPort": 44300 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -18,7 +18,7 @@ |
|
|
|
"MyCompanyName.MyProjectName": { |
|
|
|
"commandName": "Project", |
|
|
|
"launchBrowser": true, |
|
|
|
"applicationUrl": "https://localhost:44305", |
|
|
|
"applicationUrl": "https://localhost:44300", |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44305", |
|
|
|
"SelfUrl": "https://localhost:44300", |
|
|
|
"ClientUrl": "http://localhost:4200", |
|
|
|
"CorsOrigins": "https://*.MyProjectName.com,http://localhost:4200", |
|
|
|
"RedirectAllowedUrls": "http://localhost:4200" |
|
|
|
@ -12,7 +12,7 @@ |
|
|
|
"Configuration": "127.0.0.1" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44305", |
|
|
|
"Authority": "https://localhost:44300", |
|
|
|
"RequireHttpsMetadata": "false", |
|
|
|
"SwaggerClientId": "MyProjectName_Swagger", |
|
|
|
"SwaggerClientSecret": "1q2w3e*" |
|
|
|
@ -30,7 +30,7 @@ |
|
|
|
"MyProjectName_Swagger": { |
|
|
|
"ClientId": "MyProjectName_Swagger", |
|
|
|
"ClientSecret": "1q2w3e*", |
|
|
|
"RootUrl": "https://localhost:44305" |
|
|
|
"RootUrl": "https://localhost:44300" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44305", |
|
|
|
"sslPort": 44305 |
|
|
|
"applicationUrl": "https://localhost:44300", |
|
|
|
"sslPort": 44300 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -18,7 +18,7 @@ |
|
|
|
"MyCompanyName.MyProjectName": { |
|
|
|
"commandName": "Project", |
|
|
|
"launchBrowser": true, |
|
|
|
"applicationUrl": "https://localhost:44305", |
|
|
|
"applicationUrl": "https://localhost:44300", |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44305", |
|
|
|
"SelfUrl": "https://localhost:44300", |
|
|
|
"ClientUrl": "http://localhost:4200", |
|
|
|
"CorsOrigins": "https://*.MyProjectName.com,http://localhost:4200", |
|
|
|
"RedirectAllowedUrls": "http://localhost:4200" |
|
|
|
@ -12,7 +12,7 @@ |
|
|
|
"Configuration": "127.0.0.1" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44305", |
|
|
|
"Authority": "https://localhost:44300", |
|
|
|
"RequireHttpsMetadata": "false", |
|
|
|
"SwaggerClientId": "MyProjectName_Swagger", |
|
|
|
"SwaggerClientSecret": "1q2w3e*" |
|
|
|
@ -30,7 +30,7 @@ |
|
|
|
"MyProjectName_Swagger": { |
|
|
|
"ClientId": "MyProjectName_Swagger", |
|
|
|
"ClientSecret": "1q2w3e*", |
|
|
|
"RootUrl": "https://localhost:44305" |
|
|
|
"RootUrl": "https://localhost:44300" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44303/", |
|
|
|
"sslPort": 44303 |
|
|
|
"applicationUrl": "https://localhost:44300/", |
|
|
|
"sslPort": 44300 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -21,7 +21,7 @@ |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
}, |
|
|
|
"applicationUrl": "https://localhost:44303/" |
|
|
|
"applicationUrl": "https://localhost:44300/" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,12 +1,12 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44303" |
|
|
|
"SelfUrl": "https://localhost:44300" |
|
|
|
}, |
|
|
|
"ConnectionStrings": { |
|
|
|
"Default": "mongodb://localhost:27017/MyProjectName" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44303", |
|
|
|
"Authority": "https://localhost:44300", |
|
|
|
"RequireHttpsMetadata": "false" |
|
|
|
}, |
|
|
|
"StringEncryption": { |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44303/", |
|
|
|
"sslPort": 44303 |
|
|
|
"applicationUrl": "https://localhost:44300/", |
|
|
|
"sslPort": 44300 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -21,7 +21,7 @@ |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
}, |
|
|
|
"applicationUrl": "https://localhost:44303/" |
|
|
|
"applicationUrl": "https://localhost:44300/" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1,12 +1,12 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44303" |
|
|
|
"SelfUrl": "https://localhost:44300" |
|
|
|
}, |
|
|
|
"ConnectionStrings": { |
|
|
|
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=MyProjectName;Trusted_Connection=True" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44303", |
|
|
|
"Authority": "https://localhost:44300", |
|
|
|
"RequireHttpsMetadata": "false" |
|
|
|
}, |
|
|
|
"StringEncryption": { |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44314/", |
|
|
|
"sslPort": 44314 |
|
|
|
"applicationUrl": "https://localhost:44309/", |
|
|
|
"sslPort": 44309 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
"commandName": "Project", |
|
|
|
"dotnetRunMessages": "true", |
|
|
|
"launchBrowser": true, |
|
|
|
"applicationUrl": "https://localhost:44314/", |
|
|
|
"applicationUrl": "https://localhost:44309/", |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44314" |
|
|
|
"SelfUrl": "https://localhost:44309" |
|
|
|
}, |
|
|
|
"RemoteServices": { |
|
|
|
"Default": { |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44313/", |
|
|
|
"sslPort": 44313 |
|
|
|
"applicationUrl": "https://localhost:44308/", |
|
|
|
"sslPort": 44308 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
"commandName": "Project", |
|
|
|
"dotnetRunMessages": "true", |
|
|
|
"launchBrowser": true, |
|
|
|
"applicationUrl": "https://localhost:44313/", |
|
|
|
"applicationUrl": "https://localhost:44308/", |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,13 +1,13 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44313", |
|
|
|
"RedirectAllowedUrls": "https://localhost:44313" |
|
|
|
"SelfUrl": "https://localhost:44308", |
|
|
|
"RedirectAllowedUrls": "https://localhost:44308" |
|
|
|
}, |
|
|
|
"ConnectionStrings": { |
|
|
|
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=MyProjectName;Trusted_Connection=True" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44313", |
|
|
|
"Authority": "https://localhost:44308", |
|
|
|
"RequireHttpsMetadata": "false" |
|
|
|
}, |
|
|
|
"StringEncryption": { |
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ |
|
|
|
"MyProjectName_BlazorServerTiered": { |
|
|
|
"ClientId": "MyProjectName_BlazorServerTiered", |
|
|
|
"ClientSecret": "1q2w3e*", |
|
|
|
"RootUrl": "https://localhost:44314" |
|
|
|
"RootUrl": "https://localhost:44309" |
|
|
|
}, |
|
|
|
"MyProjectName_Swagger": { |
|
|
|
"ClientId": "MyProjectName_Swagger", |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44307", |
|
|
|
"sslPort": 44307 |
|
|
|
"applicationUrl": "https://localhost:44305", |
|
|
|
"sslPort": 44305 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -20,7 +20,7 @@ |
|
|
|
"commandName": "Project", |
|
|
|
"launchBrowser": true, |
|
|
|
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", |
|
|
|
"applicationUrl": "https://localhost:44307", |
|
|
|
"applicationUrl": "https://localhost:44305", |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44307" |
|
|
|
"SelfUrl": "https://localhost:44305" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44301", |
|
|
|
|
|
|
|
@ -3,8 +3,8 @@ |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "https://localhost:44313/", |
|
|
|
"sslPort": 44313 |
|
|
|
"applicationUrl": "https://localhost:44304/", |
|
|
|
"sslPort": 44304 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
"commandName": "Project", |
|
|
|
"dotnetRunMessages": "true", |
|
|
|
"launchBrowser": true, |
|
|
|
"applicationUrl": "https://localhost:44313/", |
|
|
|
"applicationUrl": "https://localhost:44304/", |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,13 +1,13 @@ |
|
|
|
{ |
|
|
|
"App": { |
|
|
|
"SelfUrl": "https://localhost:44313", |
|
|
|
"RedirectAllowedUrls": "https://localhost:44313" |
|
|
|
"SelfUrl": "https://localhost:44304", |
|
|
|
"RedirectAllowedUrls": "https://localhost:44304" |
|
|
|
}, |
|
|
|
"ConnectionStrings": { |
|
|
|
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=MyProjectName_Unified;Trusted_Connection=True" |
|
|
|
}, |
|
|
|
"AuthServer": { |
|
|
|
"Authority": "https://localhost:44313", |
|
|
|
"Authority": "https://localhost:44304", |
|
|
|
"RequireHttpsMetadata": "false" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,27 +0,0 @@ |
|
|
|
{ |
|
|
|
"iisSettings": { |
|
|
|
"windowsAuthentication": false, |
|
|
|
"anonymousAuthentication": true, |
|
|
|
"iisExpress": { |
|
|
|
"applicationUrl": "http://localhost:64779/", |
|
|
|
"sslPort": 44326 |
|
|
|
} |
|
|
|
}, |
|
|
|
"profiles": { |
|
|
|
"IIS Express": { |
|
|
|
"commandName": "IISExpress", |
|
|
|
"launchBrowser": true, |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
} |
|
|
|
}, |
|
|
|
"MyCompanyName.MyProjectName.Web": { |
|
|
|
"commandName": "Project", |
|
|
|
"launchBrowser": true, |
|
|
|
"environmentVariables": { |
|
|
|
"ASPNETCORE_ENVIRONMENT": "Development" |
|
|
|
}, |
|
|
|
"applicationUrl": "https://localhost:5001;http://localhost:5000" |
|
|
|
} |
|
|
|
} |
|
|
|
} |