Skip to content

Commit

Permalink
新增ImServer即时通讯服务端项目模板端口配置参数
Browse files Browse the repository at this point in the history
  • Loading branch information
zhontai committed Jan 6, 2025
1 parent 538e1b2 commit a642dab
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 9 deletions.
12 changes: 12 additions & 0 deletions templates/im/content/.template.config/dotnetcli.host.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "http://json.schemastore.org/dotnetcli.host",
"symbolInfo": {
"Port": {
"longName": "port",
"shortName": "p"
}
},
"usageExamples": [
""
]
}
10 changes: 9 additions & 1 deletion templates/im/content/.template.config/template.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "xiao xue",
"classifications": [ "ZhonTai", "IM", "MyIMServer", "IMServer" ],
"classifications": [ "ZhonTai", "IMServer", "MyIMServer" ],
"name": "ZhonTai.Template IM服务端项目",
"identity": "MyIMServer",
"shortName": "MyIMServer",
Expand All @@ -12,6 +12,14 @@
"sourceName": "MyIMServer",
"preferNameDirectory": true,
"symbols": {
"Port": {
"type": "parameter",
"datatype": "int",
"isRequired": false,
"defaultValue": "17010",
"replaces": "17010",
"description": "Port settings"
},
},
"sources": [
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"ImServer": {
"MyIMServer.Host": {
"commandName": "Project",
"commandLineArgs": "--urls=http://*:6010"
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://localhost:17010"
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
},
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:17010",
"sslPort": 0
}
}
}
}
4 changes: 2 additions & 2 deletions templates/im/content/MyIMServer.Host/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"Urls": "http://*:17010",
"ImServerOptions": {
"RedisClient": "127.0.0.1:6379,password=,poolsize=10,defaultDatabase=6",
"Servers": "127.0.0.1:6010",
"Server": "127.0.0.1:6010"
"Servers": "127.0.0.1:17010",
"Server": "127.0.0.1:17010"
}
}
4 changes: 2 additions & 2 deletions templates/im/templates.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>ZhonTai.Template.IMServer</id>
<version>1.0.0</version>
<version>9.0.0</version>
<authors>xiao xue</authors>
<owners>zhon tai</owners>
<projectUrl>https://github.com/zhontai/Admin.Core</projectUrl>
Expand All @@ -12,7 +12,7 @@
<releaseNotes></releaseNotes>
<copyright>Copyright ©2020 zhontai</copyright>
<description>中台即时通讯服务端模板</description>
<tags>ZhonTai IM IMServer MyIMServer</tags>
<tags>ZhonTai IMServer MyIMServer</tags>
<icon>logo.png</icon>
<packageTypes>
<packageType name="Template" />
Expand Down

0 comments on commit a642dab

Please sign in to comment.