Upload 2 files
Browse files- Program.cs +5 -5
- Properties/launchSettings.json +2 -2
Program.cs
CHANGED
|
@@ -38,11 +38,11 @@ builder.Services.AddControllers();
|
|
| 38 |
builder.WebHost.ConfigureKestrel(options =>
|
| 39 |
{
|
| 40 |
options.Limits.MaxRequestBodySize = 1073741824; // 1 GB
|
| 41 |
-
options.ListenAnyIP(
|
| 42 |
-
options.ListenAnyIP(7860, listenOptions =>
|
| 43 |
-
{
|
| 44 |
-
|
| 45 |
-
});
|
| 46 |
});
|
| 47 |
|
| 48 |
|
|
|
|
| 38 |
builder.WebHost.ConfigureKestrel(options =>
|
| 39 |
{
|
| 40 |
options.Limits.MaxRequestBodySize = 1073741824; // 1 GB
|
| 41 |
+
options.ListenAnyIP(7860); // �u�O�d HTTP �Y�i
|
| 42 |
+
//options.ListenAnyIP(7860, listenOptions =>
|
| 43 |
+
//{
|
| 44 |
+
// listenOptions.UseHttps(); // ��ť HTTPS 8081 �ݤf
|
| 45 |
+
//});
|
| 46 |
});
|
| 47 |
|
| 48 |
|
Properties/launchSettings.json
CHANGED
|
@@ -33,8 +33,8 @@
|
|
| 33 |
"launchBrowser": true,
|
| 34 |
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/weatherforecast",
|
| 35 |
"environmentVariables": {
|
| 36 |
-
"ASPNETCORE_HTTPS_PORTS": "
|
| 37 |
-
"ASPNETCORE_HTTP_PORTS": "
|
| 38 |
},
|
| 39 |
"publishAllPorts": true,
|
| 40 |
"useSSL": true
|
|
|
|
| 33 |
"launchBrowser": true,
|
| 34 |
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/weatherforecast",
|
| 35 |
"environmentVariables": {
|
| 36 |
+
//"ASPNETCORE_HTTPS_PORTS": "8080",
|
| 37 |
+
"ASPNETCORE_HTTP_PORTS": "7860"
|
| 38 |
},
|
| 39 |
"publishAllPorts": true,
|
| 40 |
"useSSL": true
|